Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 179.4 kB / 8.519 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 221.4 MB / 230.3 MB, free: 7.641 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009755/0.0009756, allocations: 89.8 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1992/0.1992, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.066e-05/1.07e-05, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1342, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3415/0.4757, allocations: 85.98 MB / 0.578 GB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.476, allocations: 64.12 kB / 0.5781 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004361/0.4804, allocations: 1.219 MB / 0.5793 GB, free: 9.547 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.4804, allocations: 0 / 0.5793 GB, free: 9.547 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.0004988/0.4809, allocations: 394.1 kB / 0.5797 GB, free: 9.117 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.481, allocations: 11.97 kB / 0.5797 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.417e-05/0.481, allocations: 11.89 kB / 0.5797 GB, free: 9.094 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.4812, allocations: 174.9 kB / 0.5799 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.4812, allocations: 4.75 kB / 0.5799 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.4812, allocations: 4 kB / 0.5799 GB, free: 8.875 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.863e-05/0.4813, allocations: 35.98 kB / 0.5799 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.4815, allocations: 73.61 kB / 0.58 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.4815, allocations: 0 / 0.58 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.4815, allocations: 0 / 0.58 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.4815, allocations: 5.25 kB / 0.58 GB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.482, allocations: 285.3 kB / 0.5803 GB, free: 8.441 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.4821, allocations: 85.45 kB / 0.5803 GB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.26e-05/0.4822, allocations: 32.86 kB / 0.5804 GB, free: 8.316 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.4822, allocations: 4 kB / 0.5804 GB, free: 8.312 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.4824, allocations: 96.47 kB / 0.5805 GB, free: 8.207 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.4824, allocations: 0 / 0.5805 GB, free: 8.207 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002436/0.4826, allocations: 97.58 kB / 0.5806 GB, free: 8.105 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.4827, allocations: 59.41 kB / 0.5806 GB, free: 8.035 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.4828, allocations: 109.2 kB / 0.5807 GB, free: 7.918 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.4828, allocations: 33.7 kB / 0.5808 GB, free: 7.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.4829, allocations: 80.42 kB / 0.5808 GB, free: 7.793 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.427e-05/0.4829, allocations: 39.53 kB / 0.5809 GB, free: 7.754 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.4829, allocations: 4 kB / 0.5809 GB, free: 7.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.483, allocations: 322.7 kB / 0.5812 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.198e-05/0.4831, allocations: 24.38 kB / 0.5812 GB, free: 7.402 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.196e-05/0.4832, allocations: 77.64 kB / 0.5813 GB, free: 7.305 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.444e-05/0.4833, allocations: 31.98 kB / 0.5813 GB, free: 7.273 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4833, allocations: 3.828 kB / 0.5813 GB, free: 7.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001956/0.4835, allocations: 121.6 kB / 0.5814 GB, free: 7.148 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.4835, allocations: 11.97 kB / 0.5814 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.4835, allocations: 0 / 0.5814 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.4835, allocations: 4 kB / 0.5814 GB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.4836, allocations: 23.98 kB / 0.5815 GB, free: 7.109 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4836, allocations: 4 kB / 0.5815 GB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.661e-05/0.4837, allocations: 11.91 kB / 0.5815 GB, free: 7.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.4837, allocations: 4 kB / 0.5815 GB, free: 7.09 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 () * 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 8.597e-05/0.4838, allocations: 126.9 kB / 0.5816 GB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.4838, allocations: 7.906 kB / 0.5816 GB, free: 6.953 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.503e-05/0.4839, allocations: 8.438 kB / 0.5816 GB, free: 6.945 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.4839, allocations: 11.89 kB / 0.5816 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4839, allocations: 0 / 0.5816 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4839, allocations: 0 / 0.5816 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.4843, allocations: 372.6 kB / 0.582 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4843, allocations: 384 / 0.582 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.534e-05/0.4844, allocations: 16.22 kB / 0.582 GB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.4844, allocations: 4 kB / 0.582 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.4844, allocations: 7.922 kB / 0.582 GB, free: 6.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4844, allocations: 3.938 kB / 0.582 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4845, allocations: 0 / 0.582 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001984/0.4847, allocations: 203.3 kB / 0.5822 GB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.786e-05/0.4847, allocations: 85.02 kB / 0.5823 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.837e-05/0.4847, allocations: 7.984 kB / 0.5823 GB, free: 6.172 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.4849, allocations: 12 kB / 0.5823 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.622e-05/0.4849, allocations: 7.984 kB / 0.5823 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.4849, allocations: 7.984 kB / 0.5823 GB, free: 6.145 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.345e-05/0.485, allocations: 87.28 kB / 0.5824 GB, free: 6.059 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.4852, allocations: 16 kB / 0.5824 GB, free: 6.043 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) * 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.0001273/0.4854, allocations: 107.2 kB / 0.5825 GB, free: 5.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001728/0.4855, allocations: 83.88 kB / 0.5826 GB, free: 5.848 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4855, allocations: 4 kB / 0.5826 GB, free: 5.844 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.371e-05/0.4856, allocations: 40.88 kB / 0.5826 GB, free: 5.805 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002021/0.4858, allocations: 15.89 kB / 0.5827 GB, free: 5.789 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000336/0.4862, allocations: 115.6 kB / 0.5828 GB, free: 5.652 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000272/0.4865, allocations: 0.7156 MB / 0.5835 GB, free: 4.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4865, allocations: 0 / 0.5835 GB, free: 4.91 MB / 394.7 MB Notification: Performance of Templates: time 0.002878/0.4893, allocations: 0.982 MB / 0.5844 GB, free: 3.938 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches