Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001011/0.001011, allocations: 182.2 kB / 15.76 MB, free: 6.367 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.489/1.489, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0008828/0.0008828, allocations: 86.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2396/0.2396, allocations: 43.56 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003012, allocations: 12 kB / 431.4 MB, free: 19.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1255, allocations: 58.87 MB / 490.2 MB, free: 8.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4092/0.5348, allocations: 85.73 MB / 0.5625 GB, free: 14.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.535, allocations: 62.91 kB / 0.5625 GB, free: 14.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004314/0.5393, allocations: 1.485 MB / 0.564 GB, free: 12.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5394, allocations: 0 / 0.564 GB, free: 12.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.5394, allocations: 0 / 0.564 GB, free: 12.73 MB / 378.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.0005448/0.5399, allocations: 398.1 kB / 0.5644 GB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.54, allocations: 8.031 kB / 0.5644 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.54, allocations: 7.906 kB / 0.5644 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.5402, allocations: 175.1 kB / 0.5645 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.5402, allocations: 14.55 kB / 0.5646 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.5402, allocations: 7.188 kB / 0.5646 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.5404, allocations: 82.77 kB / 0.5646 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.5405, allocations: 0 / 0.5646 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.5405, allocations: 7.438 kB / 0.5647 GB, free: 11.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.5405, allocations: 4 kB / 0.5647 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.5406, allocations: 46.22 kB / 0.5647 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005898/0.5412, allocations: 329.2 kB / 0.565 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.5414, allocations: 100.9 kB / 0.5651 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.5415, allocations: 0 / 0.5651 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.5417, allocations: 93.36 kB / 0.5652 GB, free: 11.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.5417, allocations: 0 / 0.5652 GB, free: 11.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004222/0.5421, allocations: 198.9 kB / 0.5654 GB, free: 11.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.5422, allocations: 63.34 kB / 0.5654 GB, free: 11.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.496e-05/0.5423, allocations: 111.9 kB / 0.5656 GB, free: 11.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.5423, allocations: 28.58 kB / 0.5656 GB, free: 11.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.5424, allocations: 90.3 kB / 0.5657 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/0.5424, allocations: 34.11 kB / 0.5657 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.322e-06/0.5424, allocations: 3.125 kB / 0.5657 GB, free: 10.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5426, allocations: 324.8 kB / 0.566 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-05/0.5427, allocations: 33.98 kB / 0.566 GB, free: 10.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.5428, allocations: 81.38 kB / 0.5661 GB, free: 10.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.5429, allocations: 56.89 kB / 0.5662 GB, free: 10.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.5429, allocations: 0 / 0.5662 GB, free: 10.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002568/0.5432, allocations: 160 kB / 0.5663 GB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.5432, allocations: 8 kB / 0.5663 GB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.5432, allocations: 4 kB / 0.5663 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.5432, allocations: 0 / 0.5663 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.5433, allocations: 23.3 kB / 0.5664 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.5434, allocations: 7.938 kB / 0.5664 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.249e-05/0.5434, allocations: 14.98 kB / 0.5664 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.5435, allocations: 8 kB / 0.5664 GB, free: 10.28 MB / 378.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.0001105/0.5436, allocations: 135.2 kB / 0.5665 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.5436, allocations: 15.91 kB / 0.5665 GB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.342e-05/0.5436, allocations: 11.06 kB / 0.5665 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.5437, allocations: 4 kB / 0.5666 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5437, allocations: 0 / 0.5666 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.5437, allocations: 0 / 0.5666 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.5442, allocations: 449.8 kB / 0.567 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5442, allocations: 0 / 0.567 GB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.294e-05/0.5442, allocations: 15.98 kB / 0.567 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5443, allocations: 0 / 0.567 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.5443, allocations: 7.5 kB / 0.567 GB, free: 9.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.5443, allocations: 3.938 kB / 0.567 GB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5443, allocations: 3.953 kB / 0.567 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002762/0.5446, allocations: 253.4 kB / 0.5673 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/0.5446, allocations: 81.09 kB / 0.5673 GB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.5447, allocations: 4 kB / 0.5673 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5448, allocations: 15.92 kB / 0.5673 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.5448, allocations: 7.953 kB / 0.5674 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.5448, allocations: 7.984 kB / 0.5674 GB, free: 9.277 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.479e-05/0.5449, allocations: 94.77 kB / 0.5675 GB, free: 9.188 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5449, allocations: 0 / 0.5675 GB, free: 9.188 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002338/0.5451, allocations: 23.59 kB / 0.5675 GB, free: 9.168 MB / 378.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.0001136/0.5453, allocations: 110.9 kB / 0.5676 GB, free: 9.055 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002335/0.5455, allocations: 105.2 kB / 0.5677 GB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5455, allocations: 0 / 0.5677 GB, free: 8.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.5456, allocations: 58.09 kB / 0.5677 GB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.5458, allocations: 18.41 kB / 0.5678 GB, free: 8.918 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.5463, allocations: 225.4 kB / 0.568 GB, free: 8.688 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.5465, allocations: 0.6965 MB / 0.5687 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.321e-05/0.5466, allocations: 12.88 kB / 0.5687 GB, free: 7.953 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.738e-05/0.5466, allocations: 11.44 kB / 0.5687 GB, free: 7.941 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.5466, allocations: 0 / 0.5687 GB, free: 7.941 MB / 378.7 MB Notification: Performance of Templates: time 0.002978/0.5496, allocations: 0.8701 MB / 0.5695 GB, free: 7.082 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches