Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00207/0.00207, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.037/2.037, allocations: 227.4 MB / 247.1 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3385/0.3385, allocations: 46.1 MB / 344.4 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 80.78 kB / 417.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1383, allocations: 62.44 MB / 480.1 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006646/0.145, allocations: 4.038 MB / 484.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003287/0.1483, allocations: 1.247 MB / 485.4 MB, free: 312 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009124/0.1493, allocations: 23.88 kB / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005858/0.1499, allocations: 79.23 kB / 485.5 MB, free: 208 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.1509, allocations: 135 kB / 485.7 MB, free: 72 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001153/0.1521, allocations: 362.7 kB / 486 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001275/0.1534, allocations: 0.8384 MB / 486.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.154, allocations: 293 kB / 487.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006311/0.1546, allocations: 318.5 kB / 487.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004453/0.1551, allocations: 326.2 kB / 487.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.1552, allocations: 68 kB / 487.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.1554, allocations: 68 kB / 487.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.1556, allocations: 155.3 kB / 488.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000349/0.1559, allocations: 353.9 kB / 488.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007712/0.1567, allocations: 0.573 MB / 489 MB, free: 12.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.1567, allocations: 8 kB / 489 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1567, allocations: 0 / 489 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.1568, allocations: 0 / 489 MB, free: 12.73 MB / 366.1 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.00217/0.159, allocations: 1.063 MB / 490 MB, free: 11.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.159, allocations: 9.109 kB / 490.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002926/0.1593, allocations: 103.8 kB / 490.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007864/0.1601, allocations: 0.5187 MB / 490.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.1602, allocations: 45.69 kB / 490.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.394e-05/0.1603, allocations: 60.12 kB / 490.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1614, allocations: 0.6123 MB / 491.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.1615, allocations: 4 kB / 491.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.697e-05/0.1615, allocations: 28 kB / 491.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.1616, allocations: 19.94 kB / 491.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008414/0.1624, allocations: 386.2 kB / 491.8 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.1667, allocations: 2.997 MB / 494.8 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.1677, allocations: 446.1 kB / 495.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003884/0.1681, allocations: 169.6 kB / 495.4 MB, free: 5.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.1682, allocations: 4 kB / 495.4 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.1682, allocations: 46.56 kB / 495.5 MB, free: 5.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 3.196e-06/0.1682, allocations: 0 / 495.5 MB, free: 5.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.00152/0.1698, allocations: 0.5448 MB / 496 MB, free: 5.371 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.1699, allocations: 132.5 kB / 496.1 MB, free: 5.211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000815/0.1707, allocations: 0.5548 MB / 496.7 MB, free: 4.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.238e-05/0.1708, allocations: 37.7 kB / 496.7 MB, free: 4.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003197/0.1711, allocations: 375.9 kB / 497.1 MB, free: 4.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.1713, allocations: 149.9 kB / 497.2 MB, free: 4.082 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001984/0.1715, allocations: 118.2 kB / 497.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.1716, allocations: 378.8 kB / 497.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/0.1721, allocations: 179.4 kB / 497.9 MB, free: 3.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005838/0.1727, allocations: 405.9 kB / 498.3 MB, free: 2.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.1737, allocations: 0.5713 MB / 498.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.1737, allocations: 0 / 498.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001345/0.1751, allocations: 0.6445 MB / 499.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.1751, allocations: 11.98 kB / 499.5 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.1751, allocations: 7.938 kB / 499.5 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.1752, allocations: 16.62 kB / 499.6 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.1757, allocations: 147.7 kB / 499.7 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.1758, allocations: 12 kB / 499.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.1763, allocations: 83.25 kB / 499.8 MB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.145e-05/0.1764, allocations: 24 kB / 499.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005399/0.1769, allocations: 305.3 kB / 0.4884 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005196/0.1774, allocations: 389.7 kB / 0.4888 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008543/0.1783, allocations: 0.556 MB / 0.4893 GB, free: 15.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.331e-06/0.1783, allocations: 4 kB / 0.4893 GB, free: 15.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001199/0.1795, allocations: 0.6324 MB / 0.4899 GB, free: 15.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1795, allocations: 8 kB / 0.4899 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1796, allocations: 4 kB / 0.4899 GB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1796, allocations: 12.69 kB / 0.49 GB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.1801, allocations: 139.8 kB / 0.4901 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.1801, allocations: 15.92 kB / 0.4901 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000475/0.1806, allocations: 59.52 kB / 0.4902 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.972e-05/0.1807, allocations: 35.94 kB / 0.4902 GB, free: 14.96 MB / 382.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.1809, allocations: 220 kB / 0.4904 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1811, allocations: 59.25 kB / 0.4905 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.1813, allocations: 74.17 kB / 0.4905 GB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.1813, allocations: 11.94 kB / 0.4905 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1813, allocations: 0 / 0.4905 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.1813, allocations: 3.984 kB / 0.4905 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009727/0.1823, allocations: 0.5673 MB / 0.4911 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1823, allocations: 0 / 0.4911 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005282/0.1828, allocations: 87.89 kB / 0.4912 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1828, allocations: 0 / 0.4912 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.1829, allocations: 8 kB / 0.4912 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.1829, allocations: 3.938 kB / 0.4912 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1829, allocations: 11.98 kB / 0.4912 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.1842, allocations: 0.7727 MB / 0.492 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.1845, allocations: 168.3 kB / 0.4921 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.82e-05/0.1846, allocations: 11.98 kB / 0.4921 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.185, allocations: 31.92 kB / 0.4922 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.464e-05/0.1851, allocations: 31.89 kB / 0.4922 GB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.1851, allocations: 12 kB / 0.4922 GB, free: 12.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000484/0.1856, allocations: 379.1 kB / 0.4926 GB, free: 12.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1856, allocations: 0 / 0.4926 GB, free: 12.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009872/0.1866, allocations: 239.2 kB / 0.4928 GB, free: 12.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001522/0.1868, allocations: 107.5 kB / 0.4929 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.1884, allocations: 0.7469 MB / 0.4936 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1884, allocations: 1.438 kB / 0.4936 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.1888, allocations: 192.8 kB / 0.4938 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.19, allocations: 174.5 kB / 0.494 GB, free: 10.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1933, allocations: 1.698 MB / 0.4956 GB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007195/0.1941, allocations: 0.9104 MB / 0.4965 GB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002117/0.1943, allocations: 51.42 kB / 0.4966 GB, free: 8.266 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.1943, allocations: 8 kB / 0.4966 GB, free: 8.258 MB / 382.1 MB Notification: Performance of Templates: time 0.0206/0.2149, allocations: 7.702 MB / 0.5041 GB, free: 0.582 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches