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.0008506/0.0008506, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009713/0.0009714, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.7 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2272/0.2272, allocations: 46.19 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003047, allocations: 8.375 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1226, allocations: 63.56 MB / 483.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004654/0.1273, allocations: 3.629 MB / 486.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00289/0.1302, allocations: 1.231 MB / 487.9 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007302/0.131, allocations: 23.88 kB / 488 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003751/0.1314, allocations: 87.22 kB / 488 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008152/0.1322, allocations: 134.2 kB / 488.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009665/0.1332, allocations: 363 kB / 488.5 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.1344, allocations: 0.7916 MB / 489.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005469/0.135, allocations: 260.4 kB / 489.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005913/0.1356, allocations: 258.5 kB / 489.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004926/0.1361, allocations: 262.3 kB / 490.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.1362, allocations: 24 kB / 490.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.1363, allocations: 28 kB / 490.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.1365, allocations: 115.3 kB / 490.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003361/0.1368, allocations: 319.6 kB / 490.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007712/0.1376, allocations: 0.6886 MB / 491.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.842e-06/0.1376, allocations: 4 kB / 491.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1376, allocations: 0 / 491.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.395e-05/0.1377, allocations: 0 / 491.3 MB, free: 11.92 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.001884/0.1395, allocations: 0.9388 MB / 492.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.1396, allocations: 17.89 kB / 492.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.14, allocations: 99.89 kB / 492.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.1408, allocations: 0.5109 MB / 492.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.1408, allocations: 45.67 kB / 492.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1409, allocations: 72.03 kB / 492.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1421, allocations: 0.628 MB / 493.6 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.1421, allocations: 0 / 493.6 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/0.1422, allocations: 24 kB / 493.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.1422, allocations: 12 kB / 493.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/0.1431, allocations: 406.2 kB / 494 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004521/0.1476, allocations: 3.036 MB / 497 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1488, allocations: 470.3 kB / 497.5 MB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004084/0.1493, allocations: 181.6 kB / 497.7 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.1494, allocations: 4 kB / 497.7 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.1494, allocations: 38.56 kB / 497.7 MB, free: 5.141 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 4.058e-06/0.1494, allocations: 7.938 kB / 497.7 MB, free: 5.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001481/0.1509, allocations: 0.5761 MB / 498.3 MB, free: 4.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.151, allocations: 144.5 kB / 498.4 MB, free: 4.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008526/0.1519, allocations: 0.547 MB / 499 MB, free: 3.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.585e-05/0.152, allocations: 33.7 kB / 499 MB, free: 3.781 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.1523, allocations: 380 kB / 499.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1525, allocations: 141.9 kB / 499.5 MB, free: 3.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.404e-05/0.1526, allocations: 69.67 kB / 499.6 MB, free: 3.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1527, allocations: 370.8 kB / 500 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004491/0.1532, allocations: 193.2 kB / 0.4884 GB, free: 2.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005683/0.1538, allocations: 405.9 kB / 0.4888 GB, free: 2.137 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1548, allocations: 0.5946 MB / 0.4894 GB, free: 1.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.1548, allocations: 4 kB / 0.4894 GB, free: 1.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001465/0.1563, allocations: 0.6724 MB / 0.49 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002809/0.1566, allocations: 303.9 kB / 0.4903 GB, free: 384 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.1566, allocations: 4 kB / 0.4903 GB, free: 380 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.1567, allocations: 12 kB / 0.4904 GB, free: 368 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005601/0.1572, allocations: 147.8 kB / 0.4905 GB, free: 220 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.262e-05/0.1573, allocations: 11.94 kB / 0.4905 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/0.1577, allocations: 75.36 kB / 0.4906 GB, free: 132 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.451e-05/0.1578, allocations: 31.98 kB / 0.4906 GB, free: 100 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.1578, allocations: 4 kB / 0.4906 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001058/0.1589, allocations: 0.5538 MB / 0.4912 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.1589, allocations: 4.688 kB / 0.4912 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1589, allocations: 15.94 kB / 0.4912 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004943/0.1594, allocations: 135.8 kB / 0.4913 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.1595, allocations: 19.92 kB / 0.4913 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/0.16, allocations: 63.45 kB / 0.4914 GB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/0.16, allocations: 32 kB / 0.4914 GB, free: 15.27 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.0003581/0.1604, allocations: 276.9 kB / 0.4917 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.1605, allocations: 63.25 kB / 0.4917 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.1607, allocations: 70.17 kB / 0.4918 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.1607, allocations: 4 kB / 0.4918 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.1608, allocations: 7.938 kB / 0.4918 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.1608, allocations: 3.984 kB / 0.4918 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000849/0.1616, allocations: 0.5712 MB / 0.4924 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.1616, allocations: 0 / 0.4924 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005211/0.1622, allocations: 91.89 kB / 0.4925 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/0.1622, allocations: 4 kB / 0.4925 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.1622, allocations: 12 kB / 0.4925 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.1623, allocations: 3.984 kB / 0.4925 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1623, allocations: 3.938 kB / 0.4925 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.1637, allocations: 0.8041 MB / 0.4933 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.1641, allocations: 172.3 kB / 0.4934 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.597e-05/0.1642, allocations: 12 kB / 0.4934 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.1646, allocations: 31.98 kB / 0.4935 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-05/0.1647, allocations: 31.89 kB / 0.4935 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.1647, allocations: 12 kB / 0.4935 GB, free: 13.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004878/0.1652, allocations: 379.1 kB / 0.4939 GB, free: 12.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1652, allocations: 0 / 0.4939 GB, free: 12.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009097/0.1661, allocations: 243.1 kB / 0.4941 GB, free: 12.41 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.0001506/0.1663, allocations: 111.5 kB / 0.4942 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.168, allocations: 0.7569 MB / 0.495 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.168, allocations: 0 / 0.495 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.1685, allocations: 196.9 kB / 0.4951 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.1697, allocations: 158.2 kB / 0.4953 GB, free: 11.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/0.1725, allocations: 1.78 MB / 0.497 GB, free: 9.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.1731, allocations: 0.9145 MB / 0.4979 GB, free: 8.445 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004169/0.1736, allocations: 84.77 kB / 0.498 GB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.1737, allocations: 43.38 kB / 0.4981 GB, free: 8.316 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1737, allocations: 0 / 0.4981 GB, free: 8.316 MB / 382.1 MB Notification: Performance of Templates: time 0.01324/0.187, allocations: 5.901 MB / 0.5038 GB, free: 2.469 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches