Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.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.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction") [: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.001355/0.001355, allocations: 178.3 kB / 8.518 MB, free: 1.84 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.306/1.306, allocations: 221.4 MB / 230.3 MB, free: 7.645 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.000981/0.0009811, allocations: 89.67 kB / 281.2 MB, free: 5.445 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.1926/0.1926, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.954e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1398, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3603/0.5001, allocations: 94.88 MB / 0.5867 GB, free: 1.914 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/0.5004, allocations: 68.62 kB / 0.5868 GB, free: 1.848 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0428/0.5433, allocations: 14 MB / 0.6005 GB, free: 3.828 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.987e-05/0.5434, allocations: 20 kB / 0.6005 GB, free: 3.809 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001847/0.5452, allocations: 0.8918 MB / 0.6014 GB, free: 2.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.5453, allocations: 11.97 kB / 0.6014 GB, free: 2.859 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.5455, allocations: 86.97 kB / 0.6015 GB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001008/0.5465, allocations: 0.5037 MB / 0.602 GB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.5466, allocations: 16 kB / 0.602 GB, free: 2.215 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.977e-05/0.5466, allocations: 43.91 kB / 0.602 GB, free: 2.172 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005695/0.5472, allocations: 290.5 kB / 0.6023 GB, free: 1.887 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007621/0.548, allocations: 0.492 MB / 0.6028 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.548, allocations: 7.844 kB / 0.6028 GB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.035e-05/0.5481, allocations: 4 kB / 0.6028 GB, free: 1.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.5481, allocations: 12 kB / 0.6028 GB, free: 1.309 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003776/0.5519, allocations: 2.895 MB / 0.6056 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006109/0.5525, allocations: 333.9 kB / 0.6059 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.5527, allocations: 137.7 kB / 0.6061 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.569e-05/0.5528, allocations: 8 kB / 0.6061 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.5528, allocations: 34.56 kB / 0.6061 GB, free: 13.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 2.555e-06/0.5528, allocations: 0 / 0.6061 GB, free: 13.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006967/0.5535, allocations: 329.8 kB / 0.6064 GB, free: 13.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/0.5536, allocations: 106.8 kB / 0.6065 GB, free: 13.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004992/0.5541, allocations: 435.9 kB / 0.6069 GB, free: 12.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.5542, allocations: 29.7 kB / 0.607 GB, free: 12.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001601/0.5543, allocations: 280.1 kB / 0.6072 GB, free: 12.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.5545, allocations: 157.8 kB / 0.6074 GB, free: 12.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.5545, allocations: 3.938 kB / 0.6074 GB, free: 12.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5547, allocations: 374.8 kB / 0.6077 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.5549, allocations: 133.3 kB / 0.6079 GB, free: 11.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.5553, allocations: 343.8 kB / 0.6082 GB, free: 11.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002926/0.5556, allocations: 172.6 kB / 0.6084 GB, free: 11.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.319e-06/0.5556, allocations: 4.844 kB / 0.6084 GB, free: 11.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0007987/0.5564, allocations: 0.5084 MB / 0.6089 GB, free: 10.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001/0.5574, allocations: 2.615 MB / 0.6114 GB, free: 7.938 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.5574, allocations: 4 kB / 0.6114 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.5575, allocations: 12 kB / 0.6114 GB, free: 7.922 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.5581, allocations: 151.8 kB / 0.6116 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.5581, allocations: 15.98 kB / 0.6116 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004542/0.5585, allocations: 63.42 kB / 0.6117 GB, free: 7.695 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.54e-05/0.5586, allocations: 24 kB / 0.6117 GB, free: 7.672 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.5586, allocations: 11.88 kB / 0.6117 GB, free: 7.66 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006794/0.5593, allocations: 419.3 kB / 0.6121 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.5593, allocations: 4 kB / 0.6121 GB, free: 7.246 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.5593, allocations: 12.88 kB / 0.6121 GB, free: 7.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005058/0.5598, allocations: 147.8 kB / 0.6122 GB, free: 7.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5599, allocations: 8 kB / 0.6123 GB, free: 7.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003783/0.5602, allocations: 55.52 kB / 0.6123 GB, free: 7.027 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.5603, allocations: 35.98 kB / 0.6123 GB, free: 6.992 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0001619/0.5605, allocations: 127.2 kB / 0.6125 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.5606, allocations: 63.25 kB / 0.6125 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/0.5608, allocations: 62.03 kB / 0.6126 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.5608, allocations: 4 kB / 0.6126 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.5608, allocations: 0 / 0.6126 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.5608, allocations: 7.906 kB / 0.6126 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008577/0.5617, allocations: 0.5015 MB / 0.6131 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.5617, allocations: 0 / 0.6131 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.5623, allocations: 103.9 kB / 0.6132 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.5623, allocations: 3.906 kB / 0.6132 GB, free: 6.078 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.5624, allocations: 4 kB / 0.6132 GB, free: 6.074 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.5624, allocations: 4 kB / 0.6132 GB, free: 6.07 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.5624, allocations: 0 / 0.6132 GB, free: 6.07 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008898/0.5633, allocations: 0.6846 MB / 0.6139 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.5635, allocations: 168.2 kB / 0.614 GB, free: 5.176 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.525e-05/0.5636, allocations: 7.891 kB / 0.614 GB, free: 5.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.564, allocations: 31.98 kB / 0.6141 GB, free: 5.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.687e-05/0.5641, allocations: 27.95 kB / 0.6141 GB, free: 5.109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/0.5641, allocations: 7.984 kB / 0.6141 GB, free: 5.102 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003593/0.5645, allocations: 331.2 kB / 0.6144 GB, free: 4.785 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008784/0.5654, allocations: 223.1 kB / 0.6146 GB, free: 4.562 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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 Backend phase and start with SimCode phase: time 0.000168/0.5656, allocations: 108.2 kB / 0.6147 GB, free: 4.449 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009724/0.5666, allocations: 0.6155 MB / 0.6153 GB, free: 3.836 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5666, allocations: 320 / 0.6153 GB, free: 3.836 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002377/0.5668, allocations: 156.1 kB / 0.6155 GB, free: 3.684 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/0.5677, allocations: 146.3 kB / 0.6156 GB, free: 3.543 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.5698, allocations: 1.036 MB / 0.6166 GB, free: 2.477 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006823/0.5705, allocations: 0.9778 MB / 0.6176 GB, free: 1.473 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5705, allocations: 0 / 0.6176 GB, free: 1.473 MB / 426.7 MB Notification: Performance of Templates: time 0.01668/0.5872, allocations: 8.573 MB / 0.626 GB, free: 8.957 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches