Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002175/0.002175, allocations: 178.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.24/2.24, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 88.67 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.284/0.284, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.472e-05, allocations: 4 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.3855, allocations: 58.85 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.5788, allocations: 84.98 MB / 0.5489 GB, free: 14.31 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5792, allocations: 67.47 kB / 0.5489 GB, free: 14.25 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.00738/0.5866, allocations: 1.469 MB / 0.5504 GB, free: 12.77 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5866, allocations: 0 / 0.5504 GB, free: 12.77 MB / 395.1 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.5867, allocations: 0 / 0.5504 GB, free: 12.77 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006436/0.5873, allocations: 382.4 kB / 0.5507 GB, free: 12.36 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.5874, allocations: 8.031 kB / 0.5507 GB, free: 12.35 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.031e-05/0.5874, allocations: 11.91 kB / 0.5508 GB, free: 12.34 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.5876, allocations: 171 kB / 0.5509 GB, free: 12.13 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.5876, allocations: 4 kB / 0.5509 GB, free: 12.12 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.5877, allocations: 8 kB / 0.5509 GB, free: 12.12 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001408/0.5878, allocations: 35.98 kB / 0.551 GB, free: 12.08 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.588, allocations: 77.61 kB / 0.551 GB, free: 12 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.588, allocations: 0 / 0.551 GB, free: 12 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.5881, allocations: 0 / 0.551 GB, free: 12 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.5881, allocations: 0 / 0.551 GB, free: 12 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00067/0.5888, allocations: 309.2 kB / 0.5513 GB, free: 11.66 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.589, allocations: 81.8 kB / 0.5514 GB, free: 11.57 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.643e-05/0.5891, allocations: 32.86 kB / 0.5514 GB, free: 11.54 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.5891, allocations: 7.984 kB / 0.5515 GB, free: 11.53 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.5894, allocations: 83.33 kB / 0.5515 GB, free: 11.44 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 2.084e-06/0.5894, allocations: 0 / 0.5515 GB, free: 11.44 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004024/0.5898, allocations: 141.7 kB / 0.5517 GB, free: 11.29 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.5898, allocations: 59.39 kB / 0.5517 GB, free: 11.22 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.59, allocations: 109.2 kB / 0.5518 GB, free: 11.11 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.59, allocations: 29.7 kB / 0.5519 GB, free: 11.07 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.5901, allocations: 154.8 kB / 0.552 GB, free: 10.91 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.612e-05/0.5902, allocations: 35.55 kB / 0.552 GB, free: 10.88 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.787e-06/0.5902, allocations: 0 / 0.552 GB, free: 10.88 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.5904, allocations: 326.8 kB / 0.5524 GB, free: 10.55 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.203e-05/0.5905, allocations: 24.38 kB / 0.5524 GB, free: 10.53 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.5906, allocations: 69.66 kB / 0.5524 GB, free: 10.44 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.5907, allocations: 31.98 kB / 0.5525 GB, free: 10.41 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5907, allocations: 0 / 0.5525 GB, free: 10.41 MB / 395.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000311/0.5911, allocations: 133.7 kB / 0.5526 GB, free: 10.27 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.5911, allocations: 8 kB / 0.5526 GB, free: 10.27 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.5911, allocations: 0 / 0.5526 GB, free: 10.27 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.5911, allocations: 7.938 kB / 0.5526 GB, free: 10.26 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.5913, allocations: 19.98 kB / 0.5526 GB, free: 10.24 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.5913, allocations: 0 / 0.5526 GB, free: 10.24 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.655e-05/0.5914, allocations: 7.906 kB / 0.5526 GB, free: 10.23 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.355e-05/0.5915, allocations: 12 kB / 0.5527 GB, free: 10.22 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001124/0.5916, allocations: 119.3 kB / 0.5528 GB, free: 10.09 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.5916, allocations: 7.906 kB / 0.5528 GB, free: 10.09 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.5917, allocations: 16.73 kB / 0.5528 GB, free: 10.07 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.5917, allocations: 0 / 0.5528 GB, free: 10.07 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.5917, allocations: 3.984 kB / 0.5528 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.5917, allocations: 0 / 0.5528 GB, free: 10.06 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006323/0.5924, allocations: 402.9 kB / 0.5532 GB, free: 9.625 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5924, allocations: 384 / 0.5532 GB, free: 9.625 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.771e-05/0.5925, allocations: 12 kB / 0.5532 GB, free: 9.613 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.5925, allocations: 0 / 0.5532 GB, free: 9.613 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.5925, allocations: 3.984 kB / 0.5532 GB, free: 9.609 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5926, allocations: 7.875 kB / 0.5532 GB, free: 9.602 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5926, allocations: 0 / 0.5532 GB, free: 9.602 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.593, allocations: 241.8 kB / 0.5534 GB, free: 9.352 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.593, allocations: 85.02 kB / 0.5535 GB, free: 9.25 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.5931, allocations: 4 kB / 0.5535 GB, free: 9.246 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.5933, allocations: 11.98 kB / 0.5535 GB, free: 9.234 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.016e-05/0.5933, allocations: 7.984 kB / 0.5535 GB, free: 9.227 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.5933, allocations: 8 kB / 0.5535 GB, free: 9.219 MB / 395.1 MB Notification: Performance of sorting global known variables: time 5.743e-05/0.5934, allocations: 87.28 kB / 0.5536 GB, free: 9.133 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5934, allocations: 0 / 0.5536 GB, free: 9.133 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.5938, allocations: 19.98 kB / 0.5536 GB, free: 9.113 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001399/0.594, allocations: 103.2 kB / 0.5537 GB, free: 9.004 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002852/0.5942, allocations: 83.88 kB / 0.5538 GB, free: 8.922 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5943, allocations: 0 / 0.5538 GB, free: 8.922 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.5944, allocations: 43.98 kB / 0.5539 GB, free: 8.879 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.5947, allocations: 4 kB / 0.5539 GB, free: 8.875 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004384/0.5951, allocations: 158.3 kB / 0.554 GB, free: 8.688 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.5954, allocations: 0.6966 MB / 0.5547 GB, free: 7.965 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.91e-05/0.5955, allocations: 15.42 kB / 0.5547 GB, free: 7.949 MB / 395.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5955, allocations: 0 / 0.5547 GB, free: 7.949 MB / 395.1 MB Notification: Performance of Templates: time 0.003569/0.5991, allocations: 1.174 MB / 0.5559 GB, free: 6.781 MB / 395.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches