Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 110.7 kB / 17.06 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 200 kB / 18.01 MB, free: 4.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 47.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2391, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked): time 0.002541/0.2417, allocations: 1.531 MB / 401.8 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003688/0.242, allocations: 145.3 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.793e-05/0.2421, allocations: 1.25 kB / 401.9 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.827e-05/0.2422, allocations: 7.922 kB / 401.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.284e-05/0.2423, allocations: 14.41 kB / 401.9 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.2425, allocations: 42.61 kB / 402 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.383e-05/0.2426, allocations: 39.08 kB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.2428, allocations: 23.86 kB / 402 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.2428, allocations: 11.94 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.671e-05/0.2428, allocations: 19.91 kB / 402.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.713e-05/0.2429, allocations: 4 kB / 402.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.2429, allocations: 8 kB / 402.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.194e-05/0.2429, allocations: 15.92 kB / 402.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.005e-05/0.243, allocations: 27.75 kB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.2431, allocations: 58.75 kB / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2431, allocations: 0 / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2431, allocations: 0 / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.2431, allocations: 0 / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000431/0.2436, allocations: 391 kB / 402.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2436, allocations: 8.031 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.006e-05/0.2437, allocations: 34.75 kB / 402.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.2437, allocations: 12.84 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.2439, allocations: 200.1 kB / 402.8 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.2439, allocations: 4.375 kB / 402.8 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.2439, allocations: 4.375 kB / 402.8 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.2442, allocations: 126.4 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.2442, allocations: 7.922 kB / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.2442, allocations: 0 / 402.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.2442, allocations: 4 kB / 402.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.2444, allocations: 35.91 kB / 403 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004113/0.2448, allocations: 369.9 kB / 403.3 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/0.2449, allocations: 83.78 kB / 403.4 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.545e-05/0.245, allocations: 42.62 kB / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.245, allocations: 0 / 403.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.245, allocations: 42.48 kB / 403.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.51e-07/0.2451, allocations: 0 / 403.5 MB, free: 5.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003107/0.2454, allocations: 101.9 kB / 403.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.2454, allocations: 110.8 kB / 403.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2455, allocations: 137.8 kB / 403.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.2456, allocations: 29.7 kB / 403.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/0.2456, allocations: 96.02 kB / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.217e-06/0.2456, allocations: 0 / 404 MB, free: 4.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.2457, allocations: 25.67 kB / 404 MB, free: 4.793 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.2458, allocations: 322.9 kB / 404.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.942e-05/0.2458, allocations: 23.92 kB / 404.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.577e-05/0.2459, allocations: 39.36 kB / 404.4 MB, free: 4.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.246, allocations: 63.34 kB / 404.4 MB, free: 4.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.2461, allocations: 3.938 kB / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001611/0.2462, allocations: 81.59 kB / 404.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.2462, allocations: 4 kB / 404.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.2463, allocations: 0 / 404.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.2463, allocations: 8.125 kB / 404.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.307e-05/0.2464, allocations: 8 kB / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.2464, allocations: 0 / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.394e-05/0.2464, allocations: 7.984 kB / 404.5 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.2464, allocations: 4 kB / 404.5 MB, free: 4.199 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u[2],sample1.u[1],sample1.y[2],sample1.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.405e-05/0.2465, allocations: 129.7 kB / 404.7 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.244e-05/0.2466, allocations: 49.61 kB / 404.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.58e-05/0.2467, allocations: 15.89 kB / 404.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.2467, allocations: 4 kB / 404.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2467, allocations: 0 / 404.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.2467, allocations: 0 / 404.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002123/0.2469, allocations: 185.6 kB / 404.9 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.2469, allocations: 4 kB / 404.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.55e-05/0.247, allocations: 7.984 kB / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/0.247, allocations: 4 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.247, allocations: 0 / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.247, allocations: 0 / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.247, allocations: 0 / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002429/0.2472, allocations: 275.5 kB / 405.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.32e-05/0.2473, allocations: 89.05 kB / 405.3 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.2473, allocations: 0 / 405.3 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.2474, allocations: 7.984 kB / 405.3 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.574e-05/0.2475, allocations: 4 kB / 405.3 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.2475, allocations: 8 kB / 405.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.376e-05/0.2476, allocations: 113.9 kB / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2476, allocations: 0 / 405.4 MB, free: 3.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.2479, allocations: 11.94 kB / 405.4 MB, free: 3.203 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (sample1.u[2],sample1.u[1],sample1.y[1],sample1.y[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005154/0.2484, allocations: 0.803 MB / 406.2 MB, free: 2.371 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001829/0.2486, allocations: 52.08 kB / 406.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2486, allocations: 256 / 406.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.106e-05/0.2486, allocations: 19.98 kB / 406.3 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.2491, allocations: 31.92 kB / 406.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2505, allocations: 1.493 MB / 407.8 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.2508, allocations: 0.6885 MB / 408.5 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.109e-05/0.2509, allocations: 11.98 kB / 408.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.792e-05/0.2509, allocations: 19.44 kB / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2509, allocations: 0 / 408.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.2695, allocations: 1.721 MB / 410.3 MB, free: 14.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.429/7.699, allocations: 7.062 kB / 410.3 MB, free: 14.35 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleVectorizedAndClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleVectorizedAndClocked/SampleVectorizedAndClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable sample1.y[2] in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv. Warning: Get data of variable sample1.y[2] from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleVectorizedAndClocked_res.csv failed! " Variables in the reference:time,sample1.y[1],sample1.y[2] Variables in the result:time,step1.startTime,step2.startTime,sample1.u[1],sample1.u[2],sample1.y[1]