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.001089/0.001089, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.3 MB / 236 MB, free: 2.953 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.000846/0.0008462, allocations: 80.06 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1975/0.1975, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.319e-05, allocations: 0 / 451.8 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1185, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4071/0.5257, allocations: 95.63 MB / 0.5951 GB, free: 9.703 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.5259, allocations: 71.91 kB / 0.5952 GB, free: 9.633 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03927/0.5652, allocations: 14.41 MB / 0.6092 GB, free: 11.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5653, allocations: 4 kB / 0.6092 GB, free: 11.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.6e-05/0.5653, allocations: 23.98 kB / 0.6093 GB, free: 11.17 MB / 426.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.001404/0.5667, allocations: 0.8685 MB / 0.6101 GB, free: 10.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.5668, allocations: 8.031 kB / 0.6101 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.5669, allocations: 86.97 kB / 0.6102 GB, free: 10.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008377/0.5678, allocations: 0.5157 MB / 0.6107 GB, free: 9.598 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.5678, allocations: 41.31 kB / 0.6107 GB, free: 9.559 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.933e-05/0.5679, allocations: 63.91 kB / 0.6108 GB, free: 9.496 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008173/0.5688, allocations: 0.5689 MB / 0.6114 GB, free: 8.867 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.5688, allocations: 3.938 kB / 0.6114 GB, free: 8.863 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.874e-05/0.5689, allocations: 28 kB / 0.6114 GB, free: 8.836 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.5689, allocations: 12 kB / 0.6114 GB, free: 8.824 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005447/0.5694, allocations: 330.9 kB / 0.6117 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003701/0.5731, allocations: 3.037 MB / 0.6147 GB, free: 5.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006033/0.5737, allocations: 360 kB / 0.615 GB, free: 4.949 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002187/0.574, allocations: 141.7 kB / 0.6152 GB, free: 4.805 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.574, allocations: 4.656 kB / 0.6152 GB, free: 4.801 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.5741, allocations: 34.56 kB / 0.6152 GB, free: 4.758 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 1.803e-06/0.5741, allocations: 0 / 0.6152 GB, free: 4.758 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006608/0.5747, allocations: 369.9 kB / 0.6155 GB, free: 4.387 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.5748, allocations: 110.8 kB / 0.6157 GB, free: 4.254 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005724/0.5754, allocations: 479.5 kB / 0.6161 GB, free: 3.777 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.5754, allocations: 37.64 kB / 0.6161 GB, free: 3.734 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002633/0.5757, allocations: 376 kB / 0.6165 GB, free: 3.359 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.5758, allocations: 149.8 kB / 0.6166 GB, free: 3.211 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.5759, allocations: 12 kB / 0.6167 GB, free: 3.199 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5761, allocations: 378.8 kB / 0.617 GB, free: 2.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.5763, allocations: 145.6 kB / 0.6172 GB, free: 2.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003868/0.5767, allocations: 354.4 kB / 0.6175 GB, free: 2.238 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.577, allocations: 191.6 kB / 0.6177 GB, free: 2.051 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.577, allocations: 4 kB / 0.6177 GB, free: 2.047 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0008769/0.5779, allocations: 0.5829 MB / 0.6183 GB, free: 1.457 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001031/0.579, allocations: 2.611 MB / 0.6208 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.579, allocations: 4 kB / 0.6208 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.579, allocations: 12 kB / 0.6208 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005913/0.5796, allocations: 151.7 kB / 0.621 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.5796, allocations: 15.94 kB / 0.621 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.5801, allocations: 75.41 kB / 0.621 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.5801, allocations: 28 kB / 0.6211 GB, free: 14.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.426e-06/0.5801, allocations: 4 kB / 0.6211 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007376/0.5809, allocations: 499.7 kB / 0.6216 GB, free: 13.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5809, allocations: 12.09 kB / 0.6216 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.5809, allocations: 12 kB / 0.6216 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004694/0.5814, allocations: 139.8 kB / 0.6217 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.5814, allocations: 15.88 kB / 0.6217 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.5818, allocations: 59.58 kB / 0.6218 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.5818, allocations: 27.98 kB / 0.6218 GB, free: 13.61 MB / 442.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.0001593/0.582, allocations: 154.1 kB / 0.622 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.5821, allocations: 63.25 kB / 0.622 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001726/0.5823, allocations: 66.3 kB / 0.6221 GB, free: 13.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.5823, allocations: 8 kB / 0.6221 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.5823, allocations: 0 / 0.6221 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.5823, allocations: 3.984 kB / 0.6221 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007951/0.5831, allocations: 0.5789 MB / 0.6227 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5832, allocations: 0 / 0.6227 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004868/0.5837, allocations: 103.9 kB / 0.6228 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.5837, allocations: 0 / 0.6228 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.5837, allocations: 15.94 kB / 0.6228 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.5837, allocations: 4 kB / 0.6228 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5837, allocations: 0 / 0.6228 GB, free: 12.56 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000877/0.5846, allocations: 0.7047 MB / 0.6235 GB, free: 11.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.5848, allocations: 164.4 kB / 0.6236 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.5849, allocations: 12 kB / 0.6236 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003567/0.5853, allocations: 35.97 kB / 0.6237 GB, free: 11.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.5854, allocations: 35.89 kB / 0.6237 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.498e-05/0.5854, allocations: 8 kB / 0.6237 GB, free: 11.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004065/0.5858, allocations: 375.2 kB / 0.6241 GB, free: 11.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5858, allocations: 0 / 0.6241 GB, free: 11.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007689/0.5866, allocations: 251.1 kB / 0.6243 GB, free: 10.95 MB / 442.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.0001573/0.5868, allocations: 111.1 kB / 0.6244 GB, free: 10.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.5879, allocations: 0.6555 MB / 0.6251 GB, free: 10.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.588, allocations: 384 / 0.6251 GB, free: 10.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002449/0.5882, allocations: 164 kB / 0.6252 GB, free: 10.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008533/0.5891, allocations: 149.2 kB / 0.6253 GB, free: 9.875 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.5909, allocations: 1.068 MB / 0.6264 GB, free: 8.781 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005292/0.5914, allocations: 0.9281 MB / 0.6273 GB, free: 7.824 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005103/0.5919, allocations: 115.2 kB / 0.6274 GB, free: 7.707 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.592, allocations: 39.38 kB / 0.6274 GB, free: 7.668 MB / 442.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5921, allocations: 0 / 0.6274 GB, free: 7.668 MB / 442.7 MB Notification: Performance of Templates: time 0.01273/0.6048, allocations: 6.971 MB / 0.6343 GB, free: 0.7539 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