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.0009101/0.0009102, allocations: 181.6 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.4 MB / 223.6 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007977/0.0007977, allocations: 95.91 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3371/0.3371, allocations: 43.56 MB / 363.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003976/0.0003978, allocations: 16 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 58.85 MB / 491.4 MB, free: 10.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2783/0.3932, allocations: 85.76 MB / 0.5637 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.3935, allocations: 59.97 kB / 0.5637 GB, free: 0.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00393/0.3974, allocations: 1.491 MB / 0.5652 GB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3974, allocations: 0 / 0.5652 GB, free: 15.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.3974, allocations: 4 kB / 0.5652 GB, free: 15.1 MB / 394.7 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.0004914/0.3979, allocations: 391.6 kB / 0.5656 GB, free: 14.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.398, allocations: 8.031 kB / 0.5656 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.591e-05/0.398, allocations: 8.844 kB / 0.5656 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3981, allocations: 180.5 kB / 0.5658 GB, free: 14.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.3982, allocations: 9.812 kB / 0.5658 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.3982, allocations: 16.36 kB / 0.5658 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001771/0.3984, allocations: 81.17 kB / 0.5659 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3984, allocations: 192 / 0.5659 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.3984, allocations: 15.92 kB / 0.5659 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.3984, allocations: 3.984 kB / 0.5659 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.3986, allocations: 43.98 kB / 0.5659 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005082/0.3991, allocations: 320.7 kB / 0.5662 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.3993, allocations: 98.97 kB / 0.5663 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.42e-05/0.3994, allocations: 48.83 kB / 0.5664 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.3994, allocations: 0 / 0.5664 GB, free: 13.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.3996, allocations: 95.36 kB / 0.5665 GB, free: 13.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.3996, allocations: 4 kB / 0.5665 GB, free: 13.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004067/0.4, allocations: 197.6 kB / 0.5666 GB, free: 13.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.4001, allocations: 59.39 kB / 0.5667 GB, free: 13.38 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.132e-05/0.4002, allocations: 119.2 kB / 0.5668 GB, free: 13.25 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.4002, allocations: 33.7 kB / 0.5668 GB, free: 13.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.161e-05/0.4002, allocations: 88.41 kB / 0.5669 GB, free: 13.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.573e-05/0.4003, allocations: 43.55 kB / 0.567 GB, free: 13.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-06/0.4003, allocations: 4 kB / 0.567 GB, free: 13.07 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4004, allocations: 326.6 kB / 0.5673 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.007e-05/0.4005, allocations: 35.97 kB / 0.5673 GB, free: 12.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.4006, allocations: 77.12 kB / 0.5674 GB, free: 12.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.4008, allocations: 126.8 kB / 0.5675 GB, free: 12.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4008, allocations: 4 kB / 0.5675 GB, free: 12.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002536/0.4011, allocations: 161.3 kB / 0.5677 GB, free: 12.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.4011, allocations: 4 kB / 0.5677 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4011, allocations: 4 kB / 0.5677 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.4011, allocations: 0 / 0.5677 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.4012, allocations: 20.36 kB / 0.5677 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.4013, allocations: 11.94 kB / 0.5677 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.778e-05/0.4013, allocations: 15.88 kB / 0.5677 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.4013, allocations: 7.984 kB / 0.5677 GB, free: 12.25 MB / 394.7 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 () * Number of clocked 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 9.723e-05/0.4014, allocations: 132 kB / 0.5679 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.4015, allocations: 8.281 kB / 0.5679 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.954e-05/0.4015, allocations: 8.5 kB / 0.5679 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.4015, allocations: 0 / 0.5679 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4015, allocations: 4 kB / 0.5679 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4015, allocations: 15.86 kB / 0.5679 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000509/0.402, allocations: 442.3 kB / 0.5683 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.4021, allocations: 3.312 kB / 0.5683 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.032e-05/0.4021, allocations: 8 kB / 0.5683 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.4021, allocations: 3.938 kB / 0.5683 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.4021, allocations: 7.984 kB / 0.5683 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.4022, allocations: 4 kB / 0.5683 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4022, allocations: 7.938 kB / 0.5684 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.4025, allocations: 249 kB / 0.5686 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.691e-05/0.4025, allocations: 85 kB / 0.5687 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.4025, allocations: 7.938 kB / 0.5687 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.4027, allocations: 15.98 kB / 0.5687 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.4027, allocations: 7.984 kB / 0.5687 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.4027, allocations: 4 kB / 0.5687 GB, free: 11.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.591e-05/0.4028, allocations: 91.27 kB / 0.5688 GB, free: 11.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4028, allocations: 0 / 0.5688 GB, free: 11.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.403, allocations: 24 kB / 0.5688 GB, free: 11.05 MB / 394.7 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) * Number of clocked states: 0 () * 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.0001068/0.4031, allocations: 111.1 kB / 0.5689 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.4034, allocations: 114.1 kB / 0.569 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4034, allocations: 0 / 0.569 GB, free: 10.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.4035, allocations: 55.91 kB / 0.5691 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.4038, allocations: 12 kB / 0.5691 GB, free: 10.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004126/0.4042, allocations: 249.7 kB / 0.5693 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.4044, allocations: 0.6926 MB / 0.57 GB, free: 9.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.578e-05/0.4045, allocations: 15.44 kB / 0.57 GB, free: 9.754 MB / 394.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4045, allocations: 0 / 0.57 GB, free: 9.754 MB / 394.7 MB Notification: Performance of Templates: time 0.002293/0.4068, allocations: 1.192 MB / 0.5712 GB, free: 8.57 MB / 394.7 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