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.001068/0.001068, allocations: 99.58 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001626/0.001626, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2495/0.2495, allocations: 46.19 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004053, allocations: 8.219 kB / 418.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1572, allocations: 63.57 MB / 482.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004676/0.1619, allocations: 3.445 MB / 485.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1642, allocations: 1.201 MB / 487 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.1645, allocations: 23.88 kB / 487.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.1648, allocations: 83.17 kB / 487.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000428/0.1652, allocations: 123 kB / 487.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006541/0.1659, allocations: 307.2 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008048/0.1667, allocations: 0.7292 MB / 488.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004325/0.1671, allocations: 224.8 kB / 488.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004258/0.1676, allocations: 246.7 kB / 488.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.1679, allocations: 250.5 kB / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.1679, allocations: 24 kB / 489 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.817e-05/0.168, allocations: 31.98 kB / 489.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.1681, allocations: 107.4 kB / 489.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1682, allocations: 133.3 kB / 489.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.1688, allocations: 0.5416 MB / 489.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1688, allocations: 4 kB / 489.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1688, allocations: 0 / 489.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1688, allocations: 0 / 489.8 MB, free: 13.03 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.001522/0.1703, allocations: 0.9464 MB / 490.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1704, allocations: 9.109 kB / 490.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002169/0.1706, allocations: 98.95 kB / 490.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006454/0.1712, allocations: 0.4906 MB / 491.4 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.1713, allocations: 41.31 kB / 491.4 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.187e-05/0.1714, allocations: 63.91 kB / 491.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009763/0.1724, allocations: 0.628 MB / 492.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.1724, allocations: 0 / 492.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.1724, allocations: 24 kB / 492.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.1725, allocations: 12 kB / 492.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007494/0.1732, allocations: 402.2 kB / 492.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.1769, allocations: 3.036 MB / 495.6 MB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009046/0.1778, allocations: 463.7 kB / 496 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003441/0.1782, allocations: 186.2 kB / 496.2 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.1782, allocations: 7.938 kB / 496.2 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1782, allocations: 38.56 kB / 496.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.924e-06/0.1783, allocations: 0 / 496.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001205/0.1795, allocations: 0.5674 MB / 496.8 MB, free: 5.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.702e-05/0.1796, allocations: 148.5 kB / 497 MB, free: 5.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.1802, allocations: 0.547 MB / 497.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.1803, allocations: 37.7 kB / 497.6 MB, free: 4.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.1806, allocations: 372 kB / 497.9 MB, free: 4.559 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001353/0.1807, allocations: 145.9 kB / 498.1 MB, free: 4.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.1807, allocations: 16 kB / 498.1 MB, free: 4.398 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1809, allocations: 374.8 kB / 498.4 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003818/0.1813, allocations: 189.2 kB / 498.6 MB, free: 3.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005583/0.1819, allocations: 405.9 kB / 499 MB, free: 3.344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.1824, allocations: 239.4 kB / 499.3 MB, free: 3.109 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.1824, allocations: 4 kB / 499.3 MB, free: 3.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001142/0.1835, allocations: 0.6607 MB / 499.9 MB, free: 2.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001877/0.1837, allocations: 292.4 kB / 0.4885 GB, free: 2.059 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1838, allocations: 8 kB / 0.4885 GB, free: 2.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.1838, allocations: 11.95 kB / 0.4885 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.1843, allocations: 143.8 kB / 0.4886 GB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.1843, allocations: 15.94 kB / 0.4887 GB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.1847, allocations: 87.34 kB / 0.4887 GB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.1847, allocations: 24 kB / 0.4888 GB, free: 1.773 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.1847, allocations: 4 kB / 0.4888 GB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009102/0.1857, allocations: 0.5461 MB / 0.4893 GB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1857, allocations: 8 kB / 0.4893 GB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1857, allocations: 8.688 kB / 0.4893 GB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.1862, allocations: 139.8 kB / 0.4894 GB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.1862, allocations: 11.94 kB / 0.4895 GB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.1865, allocations: 71.52 kB / 0.4895 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.1865, allocations: 24 kB / 0.4895 GB, free: 0.9648 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000321/0.1869, allocations: 280.8 kB / 0.4898 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.187, allocations: 75.14 kB / 0.4899 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.1871, allocations: 70.17 kB / 0.49 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1871, allocations: 4 kB / 0.49 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.1872, allocations: 0 / 0.49 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1872, allocations: 3.938 kB / 0.49 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007415/0.1879, allocations: 0.5752 MB / 0.4905 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1879, allocations: 0 / 0.4905 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004561/0.1884, allocations: 95.89 kB / 0.4906 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1884, allocations: 0 / 0.4906 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.1884, allocations: 11.98 kB / 0.4906 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1884, allocations: 4 kB / 0.4906 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.1884, allocations: 3.984 kB / 0.4906 GB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1897, allocations: 0.8081 MB / 0.4914 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001955/0.1899, allocations: 176.2 kB / 0.4916 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.612e-05/0.1899, allocations: 8 kB / 0.4916 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003126/0.1903, allocations: 39.97 kB / 0.4916 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.1903, allocations: 23.95 kB / 0.4917 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.1904, allocations: 12 kB / 0.4917 GB, free: 14.69 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003989/0.1908, allocations: 375.1 kB / 0.492 GB, free: 14.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1908, allocations: 0 / 0.492 GB, free: 14.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007631/0.1916, allocations: 235.2 kB / 0.4923 GB, free: 14.1 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 (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.0001602/0.1917, allocations: 115.1 kB / 0.4924 GB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.1932, allocations: 0.7406 MB / 0.4931 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1932, allocations: 384 / 0.4931 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.1935, allocations: 209 kB / 0.4933 GB, free: 13.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009184/0.1945, allocations: 165.4 kB / 0.4934 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.1968, allocations: 1.69 MB / 0.4951 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.1973, allocations: 0.9145 MB / 0.496 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003266/0.1976, allocations: 76.84 kB / 0.4961 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.1977, allocations: 43.42 kB / 0.4961 GB, free: 10.09 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1977, allocations: 4 kB / 0.4961 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Templates: time 0.01044/0.2082, allocations: 5.713 MB / 0.5017 GB, free: 4.438 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