Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001597/0.001597, allocations: 182.2 kB / 8.148 MB, free: 2.07 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001271/0.00127, allocations: 92.25 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2864/0.2864, allocations: 43.49 MB / 353.2 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.107e-05/1.121e-05, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.299, allocations: 58.83 MB / 476.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.4661, allocations: 93.6 MB / 0.5568 GB, free: 5.477 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.4664, allocations: 71.41 kB / 0.5568 GB, free: 5.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06661/0.5331, allocations: 13.95 MB / 0.5705 GB, free: 7.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.615e-05/0.5332, allocations: 20.22 kB / 0.5705 GB, free: 7.402 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.002576/0.5358, allocations: 0.8878 MB / 0.5713 GB, free: 6.469 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5359, allocations: 12.03 kB / 0.5714 GB, free: 6.457 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003218/0.5362, allocations: 90.95 kB / 0.5714 GB, free: 6.367 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.5378, allocations: 0.5114 MB / 0.5719 GB, free: 5.812 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.5379, allocations: 24 kB / 0.572 GB, free: 5.789 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.538, allocations: 39.91 kB / 0.572 GB, free: 5.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001053/0.5391, allocations: 290.6 kB / 0.5723 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.5404, allocations: 499.7 kB / 0.5728 GB, free: 4.922 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.5404, allocations: 4 kB / 0.5728 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.566e-05/0.5405, allocations: 0 / 0.5728 GB, free: 4.918 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.5405, allocations: 16 kB / 0.5728 GB, free: 4.902 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00662/0.5472, allocations: 2.903 MB / 0.5756 GB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.5482, allocations: 339.5 kB / 0.5759 GB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003796/0.5486, allocations: 129.7 kB / 0.5761 GB, free: 1.383 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.5487, allocations: 4.531 kB / 0.5761 GB, free: 1.379 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.5487, allocations: 38.59 kB / 0.5761 GB, free: 1.332 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 3.016e-06/0.5488, allocations: 0 / 0.5761 GB, free: 1.332 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.001089/0.5498, allocations: 321.5 kB / 0.5764 GB, free: 1.008 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.5499, allocations: 114.8 kB / 0.5765 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009014/0.5509, allocations: 455.5 kB / 0.5769 GB, free: 428 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-05/0.5509, allocations: 25.7 kB / 0.577 GB, free: 396 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.5511, allocations: 302.5 kB / 0.5773 GB, free: 92 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.5513, allocations: 146 kB / 0.5774 GB, free: 15.94 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.5514, allocations: 0 / 0.5774 GB, free: 15.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.5516, allocations: 338.7 kB / 0.5777 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004421/0.552, allocations: 133.2 kB / 0.5778 GB, free: 15.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006137/0.5526, allocations: 344.6 kB / 0.5782 GB, free: 15.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00053/0.5532, allocations: 179.6 kB / 0.5783 GB, free: 14.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.5532, allocations: 3.938 kB / 0.5784 GB, free: 14.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001367/0.5546, allocations: 480.6 kB / 0.5788 GB, free: 14.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001102/0.5557, allocations: 2.612 MB / 0.5814 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.5558, allocations: 15.98 kB / 0.5814 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.039e-05/0.5558, allocations: 15.94 kB / 0.5814 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.557, allocations: 139.8 kB / 0.5815 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.268e-05/0.5571, allocations: 23.86 kB / 0.5815 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006087/0.5577, allocations: 63.5 kB / 0.5816 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.845e-05/0.5578, allocations: 28 kB / 0.5816 GB, free: 11.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.5578, allocations: 4 kB / 0.5816 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/0.559, allocations: 423.9 kB / 0.582 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.5591, allocations: 12.16 kB / 0.5821 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.5591, allocations: 11.98 kB / 0.5821 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.5601, allocations: 135.8 kB / 0.5822 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.93e-05/0.5602, allocations: 15.94 kB / 0.5822 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005328/0.5607, allocations: 51.52 kB / 0.5823 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.5608, allocations: 28 kB / 0.5823 GB, free: 10.62 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.0001919/0.561, allocations: 53.36 kB / 0.5823 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.5613, allocations: 63.25 kB / 0.5824 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.5615, allocations: 62.17 kB / 0.5825 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.5615, allocations: 4 kB / 0.5825 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.5616, allocations: 3.906 kB / 0.5825 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/0.5616, allocations: 11.98 kB / 0.5825 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.5627, allocations: 0.5053 MB / 0.583 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.5627, allocations: 0 / 0.583 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.5638, allocations: 87.89 kB / 0.5831 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.5638, allocations: 4 kB / 0.5831 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.5639, allocations: 15.98 kB / 0.5831 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.5639, allocations: 0 / 0.5831 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5639, allocations: 0 / 0.5831 GB, free: 9.766 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001472/0.5654, allocations: 0.675 MB / 0.5837 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.5657, allocations: 172.2 kB / 0.5839 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.5659, allocations: 4 kB / 0.5839 GB, free: 8.879 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007533/0.5666, allocations: 35.88 kB / 0.5839 GB, free: 8.844 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/0.5668, allocations: 27.95 kB / 0.584 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.5668, allocations: 15.94 kB / 0.584 GB, free: 8.801 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0006166/0.5675, allocations: 339.1 kB / 0.5843 GB, free: 8.477 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001176/0.5687, allocations: 219.2 kB / 0.5845 GB, free: 8.262 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.0002012/0.5689, allocations: 107.1 kB / 0.5846 GB, free: 8.148 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.5706, allocations: 0.5954 MB / 0.5852 GB, free: 7.555 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5706, allocations: 0 / 0.5852 GB, free: 7.555 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.571, allocations: 151.9 kB / 0.5853 GB, free: 7.406 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/0.5726, allocations: 152.9 kB / 0.5855 GB, free: 7.262 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.5757, allocations: 1.061 MB / 0.5865 GB, free: 6.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009384/0.5767, allocations: 0.9729 MB / 0.5875 GB, free: 5.16 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5767, allocations: 0 / 0.5875 GB, free: 5.16 MB / 426.7 MB Notification: Performance of Templates: time 0.01786/0.5946, allocations: 7.581 MB / 0.5949 GB, free: 13.59 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches