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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 221.5 MB / 230.7 MB, free: 7.57 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.0008876/0.000888, allocations: 92.47 kB / 281.6 MB, free: 5.332 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.1862/0.1862, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.188e-05/1.19e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.5089, allocations: 94.96 MB / 0.5874 GB, free: 1.574 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.5092, allocations: 72.81 kB / 0.5875 GB, free: 1.504 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03896/0.5481, allocations: 14.3 MB / 0.6014 GB, free: 3.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5482, allocations: 4 kB / 0.6014 GB, free: 3.176 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.417e-05/0.5483, allocations: 23.94 kB / 0.6015 GB, free: 3.152 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.001441/0.5497, allocations: 0.8724 MB / 0.6023 GB, free: 2.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.5497, allocations: 12.03 kB / 0.6023 GB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.5499, allocations: 86.97 kB / 0.6024 GB, free: 2.133 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007958/0.5507, allocations: 0.5078 MB / 0.6029 GB, free: 1.582 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.5507, allocations: 16 kB / 0.6029 GB, free: 1.566 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.997e-05/0.5508, allocations: 43.91 kB / 0.603 GB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005735/0.5514, allocations: 286.6 kB / 0.6032 GB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007326/0.5522, allocations: 0.4961 MB / 0.6037 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.5522, allocations: 3.938 kB / 0.6037 GB, free: 0.6836 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.431e-05/0.5522, allocations: 4 kB / 0.6037 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.5523, allocations: 15.98 kB / 0.6037 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003859/0.5561, allocations: 2.934 MB / 0.6066 GB, free: 13.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.5567, allocations: 344 kB / 0.6069 GB, free: 13.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.5569, allocations: 125.7 kB / 0.6071 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.172e-05/0.557, allocations: 12.66 kB / 0.6071 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.557, allocations: 34.56 kB / 0.6071 GB, free: 13.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 1.954e-06/0.557, allocations: 0 / 0.6071 GB, free: 13.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005779/0.5576, allocations: 330 kB / 0.6074 GB, free: 12.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.5576, allocations: 106.8 kB / 0.6075 GB, free: 12.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.5581, allocations: 447.3 kB / 0.6079 GB, free: 12.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.5582, allocations: 29.64 kB / 0.608 GB, free: 12.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.5584, allocations: 376 kB / 0.6083 GB, free: 11.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.5585, allocations: 145.8 kB / 0.6085 GB, free: 11.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.5586, allocations: 0 / 0.6085 GB, free: 11.61 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.5587, allocations: 374.8 kB / 0.6088 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.559, allocations: 129.6 kB / 0.609 GB, free: 11.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.5593, allocations: 348.8 kB / 0.6093 GB, free: 10.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002848/0.5596, allocations: 176.7 kB / 0.6095 GB, free: 10.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.5596, allocations: 0 / 0.6095 GB, free: 10.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0007815/0.5604, allocations: 0.5238 MB / 0.61 GB, free: 9.969 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008469/0.5613, allocations: 2.612 MB / 0.6125 GB, free: 7.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.5613, allocations: 8 kB / 0.6125 GB, free: 7.145 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.5613, allocations: 11.95 kB / 0.6125 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/0.5619, allocations: 151.7 kB / 0.6127 GB, free: 6.984 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.5619, allocations: 12 kB / 0.6127 GB, free: 6.973 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004189/0.5624, allocations: 63.41 kB / 0.6128 GB, free: 6.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/0.5624, allocations: 28 kB / 0.6128 GB, free: 6.883 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.5624, allocations: 8 kB / 0.6128 GB, free: 6.875 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007078/0.5631, allocations: 423.5 kB / 0.6132 GB, free: 6.461 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.5632, allocations: 8 kB / 0.6132 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.5632, allocations: 8 kB / 0.6132 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005103/0.5637, allocations: 139.8 kB / 0.6133 GB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.5637, allocations: 8 kB / 0.6133 GB, free: 6.301 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.5641, allocations: 55.91 kB / 0.6134 GB, free: 6.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.5641, allocations: 35.94 kB / 0.6134 GB, free: 6.211 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.0001287/0.5643, allocations: 125.9 kB / 0.6136 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.5644, allocations: 63.25 kB / 0.6136 GB, free: 6.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.5645, allocations: 66.47 kB / 0.6137 GB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.5645, allocations: 4 kB / 0.6137 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5645, allocations: 0 / 0.6137 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.5646, allocations: 7.984 kB / 0.6137 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006806/0.5652, allocations: 0.5053 MB / 0.6142 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5653, allocations: 3.953 kB / 0.6142 GB, free: 5.395 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005046/0.5658, allocations: 87.89 kB / 0.6143 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.5658, allocations: 4 kB / 0.6143 GB, free: 5.305 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.5658, allocations: 7.938 kB / 0.6143 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.5658, allocations: 0 / 0.6143 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.5658, allocations: 0 / 0.6143 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008133/0.5667, allocations: 0.6851 MB / 0.615 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001835/0.5669, allocations: 180.3 kB / 0.6151 GB, free: 4.387 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.215e-05/0.5669, allocations: 8 kB / 0.6151 GB, free: 4.379 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003743/0.5673, allocations: 27.98 kB / 0.6152 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.5674, allocations: 27.95 kB / 0.6152 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.5674, allocations: 11.98 kB / 0.6152 GB, free: 4.312 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003356/0.5678, allocations: 331.2 kB / 0.6155 GB, free: 3.996 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5678, allocations: 0 / 0.6155 GB, free: 3.996 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007614/0.5685, allocations: 219.2 kB / 0.6157 GB, free: 3.781 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.0001396/0.5687, allocations: 107.1 kB / 0.6158 GB, free: 3.668 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008935/0.5696, allocations: 0.6072 MB / 0.6164 GB, free: 3.062 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5696, allocations: 0 / 0.6164 GB, free: 3.062 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002164/0.5698, allocations: 148.2 kB / 0.6166 GB, free: 2.918 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008125/0.5706, allocations: 149.7 kB / 0.6167 GB, free: 2.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.5723, allocations: 1.043 MB / 0.6177 GB, free: 1.695 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.5727, allocations: 0.9317 MB / 0.6186 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004913/0.5732, allocations: 123 kB / 0.6187 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.5734, allocations: 35.44 kB / 0.6188 GB, free: 0.582 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5734, allocations: 0 / 0.6188 GB, free: 0.582 MB / 426.7 MB Notification: Performance of Templates: time 0.01155/0.5849, allocations: 6.409 MB / 0.625 GB, free: 10.23 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