Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.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.Rotational.InitializationConversion.SpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w|relativeStates.phi_rel|relativeStates.w_rel|springDamper1.phi_rel|springDamper1.w_rel|springDamper2.phi_rel|springDamper2.w_rel|springDamper3.phi_rel|springDamper3.w_rel",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper") translateModel(ModelicaTest.Rotational.InitializationConversion.SpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w|relativeStates.phi_rel|relativeStates.w_rel|springDamper1.phi_rel|springDamper1.w_rel|springDamper2.phi_rel|springDamper2.w_rel|springDamper3.phi_rel|springDamper3.w_rel",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00168/0.00168, allocations: 106.7 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246.3 MB, free: 10.83 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 82.95 kB / 416.9 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1563, allocations: 62.43 MB / 479.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.004371/0.1607, allocations: 3.331 MB / 482.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.1623, allocations: 0.8218 MB / 483.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.1626, allocations: 11.94 kB / 483.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002539/0.1629, allocations: 51.56 kB / 483.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.1633, allocations: 154.8 kB / 483.6 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.1635, allocations: 87.92 kB / 483.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005801/0.1641, allocations: 0.5675 MB / 484.3 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.1643, allocations: 154 kB / 484.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.1646, allocations: 199.2 kB / 484.6 MB, free: 356 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.1648, allocations: 238.9 kB / 484.9 MB, free: 116 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.208e-05/0.1649, allocations: 28 kB / 484.9 MB, free: 88 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.705e-05/0.165, allocations: 28 kB / 484.9 MB, free: 60 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.314e-05/0.1651, allocations: 91.61 kB / 485 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.1654, allocations: 250.8 kB / 485.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005596/0.166, allocations: 0.5215 MB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.166, allocations: 0 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.166, allocations: 0 / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.662e-05/0.166, allocations: 0 / 485.8 MB, free: 15.2 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001185/0.1672, allocations: 0.764 MB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.1673, allocations: 9.953 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.784e-05/0.1674, allocations: 52.38 kB / 486.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.1677, allocations: 326.4 kB / 486.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.1678, allocations: 37.38 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.1678, allocations: 52.28 kB / 487 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000701/0.1685, allocations: 434.9 kB / 487.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.1686, allocations: 15.89 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.1686, allocations: 16 kB / 487.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1686, allocations: 12 kB / 487.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004917/0.1691, allocations: 318.3 kB / 487.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.1708, allocations: 1.154 MB / 489 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007895/0.1716, allocations: 493 kB / 489.4 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003072/0.1719, allocations: 210.9 kB / 489.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1719, allocations: 8.469 kB / 489.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.1719, allocations: 50.92 kB / 489.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 1.723e-06/0.172, allocations: 0 / 489.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.003027/0.175, allocations: 2.131 MB / 491.8 MB, free: 8.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.1751, allocations: 81.67 kB / 491.9 MB, free: 8.684 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.1753, allocations: 258.9 kB / 492.2 MB, free: 8.426 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.1754, allocations: 33.7 kB / 492.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.1756, allocations: 217 kB / 492.4 MB, free: 8.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.1758, allocations: 268.1 kB / 492.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.1759, allocations: 122.6 kB / 492.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1761, allocations: 358.7 kB / 493.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.1764, allocations: 157.9 kB / 493.3 MB, free: 7.266 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.1767, allocations: 272.9 kB / 493.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006649/0.1774, allocations: 476 kB / 494 MB, free: 6.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1774, allocations: 4 kB / 494 MB, free: 6.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0009206/0.1783, allocations: 0.5671 MB / 494.6 MB, free: 5.883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1784, allocations: 6.656 kB / 494.6 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1784, allocations: 4 kB / 494.6 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1784, allocations: 8 kB / 494.6 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005801/0.179, allocations: 175.7 kB / 494.8 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.179, allocations: 7.984 kB / 494.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.1793, allocations: 24 kB / 494.8 MB, free: 5.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.1793, allocations: 31.94 kB / 494.8 MB, free: 5.633 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 97 * 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.0001977/0.1795, allocations: 182.2 kB / 495 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/0.1796, allocations: 47.53 kB / 495.1 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.1797, allocations: 55.64 kB / 495.1 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1798, allocations: 4 kB / 495.1 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.1798, allocations: 8 kB / 495.1 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1798, allocations: 7.984 kB / 495.1 MB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.182, allocations: 1.457 MB / 496.6 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.182, allocations: 4.344 kB / 496.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000625/0.1826, allocations: 159.8 kB / 496.8 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.1826, allocations: 4 kB / 496.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.1827, allocations: 27.92 kB / 496.8 MB, free: 3.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.434e-06/0.1827, allocations: 7.938 kB / 496.8 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1827, allocations: 4 kB / 496.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1838, allocations: 0.9037 MB / 497.7 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.184, allocations: 120.5 kB / 497.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.565e-05/0.1841, allocations: 19.94 kB / 497.8 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.1844, allocations: 23.94 kB / 497.9 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.1845, allocations: 48.31 kB / 497.9 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.1845, allocations: 23.98 kB / 497.9 MB, free: 2.348 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001815/0.1847, allocations: 181.9 kB / 498.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1847, allocations: 0 / 498.1 MB, free: 2.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000599/0.1853, allocations: 144 kB / 498.3 MB, free: 2.027 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel) * 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 (74): * Single equations (assignments): 74 * 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.000161/0.1855, allocations: 123 kB / 498.4 MB, free: 1.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008151/0.1863, allocations: 460 kB / 498.8 MB, free: 1.449 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.1863, allocations: 4.125 kB / 498.8 MB, free: 1.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003778/0.1867, allocations: 234.2 kB / 499.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009233/0.1876, allocations: 112.2 kB / 499.2 MB, free: 1.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002934/0.1906, allocations: 1.869 MB / 0.4893 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004787/0.1911, allocations: 0.8488 MB / 0.4901 GB, free: 14.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002274/0.1913, allocations: 56.66 kB / 0.4902 GB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1914, allocations: 43.44 kB / 0.4902 GB, free: 14.21 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1914, allocations: 4 kB / 0.4902 GB, free: 14.2 MB / 382.1 MB Notification: Performance of Templates: time 0.01209/0.2035, allocations: 5.039 MB / 0.4951 GB, free: 9.215 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches