Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001375/0.001376, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001424, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.666/1.666, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2718/0.2718, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 81.16 kB / 417.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1285, allocations: 62.44 MB / 480.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.00487/0.1334, allocations: 3.29 MB / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1352, allocations: 0.8257 MB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1355, allocations: 11.94 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002513/0.1358, allocations: 71.25 kB / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003527/0.1361, allocations: 178.5 kB / 484.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000274/0.1364, allocations: 103.9 kB / 484.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007148/0.1371, allocations: 0.5987 MB / 485.2 MB, free: 136 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004333/0.1376, allocations: 177.6 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003182/0.1379, allocations: 211.3 kB / 485.5 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003375/0.1382, allocations: 242.9 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-05/0.1383, allocations: 44 kB / 485.8 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.651e-05/0.1384, allocations: 44 kB / 485.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.1386, allocations: 107.5 kB / 486 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002802/0.1389, allocations: 262.8 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000605/0.1395, allocations: 0.5488 MB / 486.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.233e-05/0.1395, allocations: 8 kB / 486.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1395, allocations: 0 / 486.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.1395, allocations: 0 / 486.8 MB, free: 14.51 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.001404/0.1409, allocations: 0.76 MB / 487.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.141, allocations: 12.03 kB / 487.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1411, allocations: 52.38 kB / 487.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.1416, allocations: 310.5 kB / 487.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.1416, allocations: 33.38 kB / 487.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.1417, allocations: 60.27 kB / 488 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007191/0.1425, allocations: 434.9 kB / 488.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.171e-05/0.1425, allocations: 19.89 kB / 488.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.1426, allocations: 16 kB / 488.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.1426, allocations: 12 kB / 488.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005072/0.1431, allocations: 320.4 kB / 488.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.1449, allocations: 1.153 MB / 489.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.1457, allocations: 488.9 kB / 490.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.146, allocations: 211 kB / 490.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.1461, allocations: 8.438 kB / 490.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.1461, allocations: 46.94 kB / 490.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.094e-06/0.1461, allocations: 0 / 490.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.003282/0.1494, allocations: 2.139 MB / 492.8 MB, free: 8.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.1495, allocations: 85.67 kB / 492.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.1498, allocations: 254.9 kB / 493.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.402e-05/0.1498, allocations: 37.7 kB / 493.2 MB, free: 7.695 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.15, allocations: 209 kB / 493.4 MB, free: 7.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.1502, allocations: 268.1 kB / 493.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.1504, allocations: 122.6 kB / 493.8 MB, free: 7.094 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1506, allocations: 362.7 kB / 494.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.1508, allocations: 161.9 kB / 494.3 MB, free: 6.574 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003724/0.1512, allocations: 272.8 kB / 494.6 MB, free: 6.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006803/0.1519, allocations: 470.8 kB / 495 MB, free: 5.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1519, allocations: 0 / 495 MB, free: 5.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0008603/0.1528, allocations: 0.563 MB / 495.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1528, allocations: 8 kB / 495.6 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1528, allocations: 0 / 495.6 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.801e-05/0.1529, allocations: 8 kB / 495.6 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000619/0.1535, allocations: 184 kB / 495.8 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.1535, allocations: 8 kB / 495.8 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.1538, allocations: 27.92 kB / 495.8 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.979e-05/0.1538, allocations: 31.94 kB / 495.8 MB, free: 4.941 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.0002205/0.154, allocations: 177.6 kB / 496 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.099e-05/0.1541, allocations: 43.53 kB / 496.1 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.1543, allocations: 59.64 kB / 496.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.1543, allocations: 12 kB / 496.1 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1543, allocations: 0 / 496.1 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.1543, allocations: 3.984 kB / 496.1 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.1562, allocations: 1.45 MB / 497.6 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.1563, allocations: 4.062 kB / 497.6 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006079/0.1569, allocations: 159.8 kB / 497.7 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.1569, allocations: 4 kB / 497.7 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.1569, allocations: 23.94 kB / 497.8 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.055e-05/0.1569, allocations: 15.88 kB / 497.8 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.157, allocations: 4.344 kB / 497.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1581, allocations: 0.9037 MB / 498.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1582, allocations: 120.5 kB / 498.8 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.1583, allocations: 19.92 kB / 498.8 MB, free: 1.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.1586, allocations: 20 kB / 498.8 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.1587, allocations: 52.31 kB / 498.9 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.1587, allocations: 20 kB / 498.9 MB, free: 1.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.1589, allocations: 185.9 kB / 499.1 MB, free: 1.492 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1589, allocations: 0 / 499.1 MB, free: 1.492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005294/0.1594, allocations: 144 kB / 499.2 MB, free: 1.352 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.0001619/0.1596, allocations: 123.1 kB / 499.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009159/0.1605, allocations: 484.4 kB / 499.8 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.1605, allocations: 7.938 kB / 499.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003166/0.1609, allocations: 235.2 kB / 0.4883 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009353/0.1618, allocations: 131.8 kB / 0.4885 GB, free: 400 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.1646, allocations: 1.672 MB / 0.4901 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005545/0.1652, allocations: 0.8484 MB / 0.4909 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.1655, allocations: 60.66 kB / 0.491 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.1656, allocations: 39.44 kB / 0.491 GB, free: 13.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.1656, allocations: 0 / 0.491 GB, free: 13.68 MB / 382.1 MB Notification: Performance of Templates: time 0.01123/0.1768, allocations: 5.303 MB / 0.4962 GB, free: 8.445 MB / 382.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches