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.001476/0.00148, allocations: 185.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001113/0.001113, allocations: 97.55 kB / 270.9 MB, free: 8.379 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.5025/0.5025, allocations: 43.55 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004782/0.0004782, allocations: 8 kB / 431.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.125, allocations: 58.84 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4502/0.5752, allocations: 85.73 MB / 0.5624 GB, free: 1.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.5755, allocations: 63.97 kB / 0.5625 GB, free: 0.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006265/0.5818, allocations: 1.494 MB / 0.564 GB, free: 15.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5818, allocations: 0 / 0.564 GB, free: 15.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.5818, allocations: 4 kB / 0.564 GB, free: 15.48 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.00076/0.5826, allocations: 394.3 kB / 0.5643 GB, free: 15.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.5827, allocations: 8.031 kB / 0.5643 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.5827, allocations: 20.09 kB / 0.5644 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.5829, allocations: 171.1 kB / 0.5645 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.557e-05/0.5829, allocations: 3.984 kB / 0.5645 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.583, allocations: 12 kB / 0.5645 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.5833, allocations: 93.58 kB / 0.5646 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.5833, allocations: 0 / 0.5646 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.5833, allocations: 0 / 0.5646 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.5833, allocations: 1.031 kB / 0.5646 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.5836, allocations: 51.97 kB / 0.5647 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007177/0.5843, allocations: 328.7 kB / 0.565 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002821/0.5846, allocations: 86.53 kB / 0.5651 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.5847, allocations: 8 kB / 0.5651 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002979/0.585, allocations: 95.27 kB / 0.5652 GB, free: 14.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 2.435e-06/0.585, allocations: 4 kB / 0.5652 GB, free: 14.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007449/0.5857, allocations: 193.6 kB / 0.5654 GB, free: 13.88 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.5858, allocations: 63.34 kB / 0.5654 GB, free: 13.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.5859, allocations: 109.2 kB / 0.5655 GB, free: 13.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.586, allocations: 33.7 kB / 0.5656 GB, free: 13.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.538e-05/0.5861, allocations: 154.8 kB / 0.5657 GB, free: 13.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/0.5862, allocations: 35.53 kB / 0.5657 GB, free: 13.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.549e-05/0.5862, allocations: 8 kB / 0.5658 GB, free: 13.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.5863, allocations: 318.8 kB / 0.5661 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.5865, allocations: 39.53 kB / 0.5661 GB, free: 13.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.5867, allocations: 85.81 kB / 0.5662 GB, free: 12.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.5869, allocations: 44 kB / 0.5662 GB, free: 12.95 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.5869, allocations: 0 / 0.5662 GB, free: 12.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004471/0.5873, allocations: 154.6 kB / 0.5664 GB, free: 12.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.5874, allocations: 4.656 kB / 0.5664 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.5874, allocations: 0 / 0.5664 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.5874, allocations: 8.141 kB / 0.5664 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.5876, allocations: 27.94 kB / 0.5664 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.5877, allocations: 7.984 kB / 0.5664 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.5878, allocations: 7.953 kB / 0.5664 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.5878, allocations: 8.656 kB / 0.5664 GB, free: 12.73 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 0.0001629/0.588, allocations: 138.4 kB / 0.5666 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.588, allocations: 11.91 kB / 0.5666 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.5881, allocations: 12.86 kB / 0.5666 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.5881, allocations: 7.984 kB / 0.5666 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.5881, allocations: 4 kB / 0.5666 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.5881, allocations: 224 / 0.5666 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008462/0.589, allocations: 453.7 kB / 0.567 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.589, allocations: 0 / 0.567 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.699e-05/0.5891, allocations: 11.94 kB / 0.567 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.5891, allocations: 3.984 kB / 0.567 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.5892, allocations: 8 kB / 0.567 GB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5892, allocations: 4 kB / 0.5671 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5892, allocations: 3.953 kB / 0.5671 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005313/0.5897, allocations: 244.4 kB / 0.5673 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.5898, allocations: 85.02 kB / 0.5674 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/0.5899, allocations: 4 kB / 0.5674 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.59, allocations: 15.98 kB / 0.5674 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.5901, allocations: 11.94 kB / 0.5674 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.5901, allocations: 4 kB / 0.5674 GB, free: 11.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.043e-05/0.5902, allocations: 95.2 kB / 0.5675 GB, free: 11.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5902, allocations: 0 / 0.5675 GB, free: 11.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.5906, allocations: 24 kB / 0.5675 GB, free: 11.52 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.0001494/0.5908, allocations: 103.2 kB / 0.5676 GB, free: 11.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.5912, allocations: 109.5 kB / 0.5677 GB, free: 11.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5912, allocations: 0 / 0.5677 GB, free: 11.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.5914, allocations: 51.92 kB / 0.5678 GB, free: 11.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002666/0.5917, allocations: 14.83 kB / 0.5678 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.5923, allocations: 253.6 kB / 0.568 GB, free: 10.97 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.5927, allocations: 0.7004 MB / 0.5687 GB, free: 10.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.056e-05/0.5927, allocations: 15.44 kB / 0.5687 GB, free: 10.23 MB / 394.7 MB Notification: Performance of SimCode: time 9.22e-07/0.5927, allocations: 0 / 0.5687 GB, free: 10.23 MB / 394.7 MB Notification: Performance of Templates: time 0.003815/0.5966, allocations: 1.171 MB / 0.5699 GB, free: 9.059 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