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.001357/0.001357, allocations: 175.8 kB / 16.76 MB, free: 5.047 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.634/1.634, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007291/0.0007291, allocations: 88.58 kB / 271.3 MB, free: 8.254 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.3953/0.3953, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004797/0.0004798, allocations: 16 kB / 432.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1337, allocations: 58.85 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3719/0.5057, allocations: 85.76 MB / 0.5637 GB, free: 260 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.506, allocations: 59.97 kB / 0.5638 GB, free: 200 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004197/0.5102, allocations: 1.495 MB / 0.5652 GB, free: 14.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.5102, allocations: 0 / 0.5652 GB, free: 14.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.5102, allocations: 7.844 kB / 0.5652 GB, free: 14.71 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.0005377/0.5108, allocations: 394.6 kB / 0.5656 GB, free: 14.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5108, allocations: 8.031 kB / 0.5656 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.5109, allocations: 8.844 kB / 0.5656 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.511, allocations: 180.3 kB / 0.5658 GB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.5111, allocations: 8.562 kB / 0.5658 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.5111, allocations: 16.31 kB / 0.5658 GB, free: 14.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.5113, allocations: 82.2 kB / 0.5659 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.5113, allocations: 192 / 0.5659 GB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.5113, allocations: 11.94 kB / 0.5659 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.5113, allocations: 0 / 0.5659 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.5115, allocations: 47.97 kB / 0.5659 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.5121, allocations: 320.7 kB / 0.5663 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.5123, allocations: 102.4 kB / 0.5663 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.606e-05/0.5124, allocations: 40.84 kB / 0.5664 GB, free: 13.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.5124, allocations: 4 kB / 0.5664 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.5127, allocations: 99.36 kB / 0.5665 GB, free: 13.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.5127, allocations: 0 / 0.5665 GB, free: 13.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004392/0.5131, allocations: 197.6 kB / 0.5667 GB, free: 13.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.044e-05/0.5132, allocations: 55.41 kB / 0.5667 GB, free: 12.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.975e-05/0.5133, allocations: 113.8 kB / 0.5668 GB, free: 12.87 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.5133, allocations: 37.69 kB / 0.5669 GB, free: 12.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.837e-05/0.5134, allocations: 88.42 kB / 0.567 GB, free: 12.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.5135, allocations: 43.53 kB / 0.567 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.5135, allocations: 4.875 kB / 0.567 GB, free: 12.68 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.5136, allocations: 325.4 kB / 0.5673 GB, free: 12.36 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.662e-05/0.5137, allocations: 35.98 kB / 0.5673 GB, free: 12.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.5138, allocations: 77.88 kB / 0.5674 GB, free: 12.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.514, allocations: 132 kB / 0.5675 GB, free: 12.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5141, allocations: 0 / 0.5675 GB, free: 12.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002786/0.5143, allocations: 161.3 kB / 0.5677 GB, free: 11.92 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.5144, allocations: 4 kB / 0.5677 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.5144, allocations: 3.984 kB / 0.5677 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.5144, allocations: 4.656 kB / 0.5677 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.5145, allocations: 20.16 kB / 0.5677 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.5145, allocations: 12.3 kB / 0.5677 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.809e-05/0.5146, allocations: 11.94 kB / 0.5678 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.5146, allocations: 4 kB / 0.5678 GB, free: 11.86 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.0001035/0.5148, allocations: 128 kB / 0.5679 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.5148, allocations: 16.06 kB / 0.5679 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.5148, allocations: 12.48 kB / 0.5679 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.5148, allocations: 3.938 kB / 0.5679 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5148, allocations: 0 / 0.5679 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.5149, allocations: 13.06 kB / 0.5679 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005291/0.5154, allocations: 442.3 kB / 0.5683 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5154, allocations: 0 / 0.5683 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.508e-05/0.5155, allocations: 15.98 kB / 0.5684 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.5155, allocations: 3.938 kB / 0.5684 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.5155, allocations: 0 / 0.5684 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5155, allocations: 4 kB / 0.5684 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.5155, allocations: 9.938 kB / 0.5684 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.5158, allocations: 244 kB / 0.5686 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.638e-05/0.5159, allocations: 85.02 kB / 0.5687 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.5159, allocations: 11.94 kB / 0.5687 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.516, allocations: 11.98 kB / 0.5687 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.5161, allocations: 7.984 kB / 0.5687 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.5161, allocations: 4 kB / 0.5687 GB, free: 10.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.635e-05/0.5162, allocations: 91.27 kB / 0.5688 GB, free: 10.69 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5162, allocations: 0 / 0.5688 GB, free: 10.69 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000241/0.5164, allocations: 24 kB / 0.5688 GB, free: 10.66 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.0001157/0.5165, allocations: 119.1 kB / 0.5689 GB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000254/0.5168, allocations: 114.4 kB / 0.5691 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5168, allocations: 0 / 0.5691 GB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.5169, allocations: 51.92 kB / 0.5691 GB, free: 10.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.5172, allocations: 13.62 kB / 0.5691 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004508/0.5177, allocations: 224 kB / 0.5693 GB, free: 10.13 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002731/0.518, allocations: 0.6926 MB / 0.57 GB, free: 9.41 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.592e-05/0.518, allocations: 12.88 kB / 0.57 GB, free: 9.398 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.59e-05/0.5181, allocations: 11.72 kB / 0.57 GB, free: 9.387 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5181, allocations: 4 kB / 0.57 GB, free: 9.383 MB / 394.7 MB Notification: Performance of Templates: time 0.00287/0.5209, allocations: 0.8817 MB / 0.5709 GB, free: 8.52 MB / 394.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/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_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches