Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 100.2 kB / 16.26 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 190.1 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2277/0.2277, allocations: 43.52 MB / 313.9 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 72.25 kB / 382.7 MB, free: 56.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.134, allocations: 57.8 MB / 440.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.003785/0.1378, allocations: 3.268 MB / 443.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001175/0.139, allocations: 0.8343 MB / 444.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.1392, allocations: 8 kB / 444.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.1394, allocations: 79.17 kB / 444.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002695/0.1397, allocations: 174.5 kB / 444.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.1399, allocations: 107.8 kB / 445 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.1404, allocations: 0.591 MB / 445.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.1406, allocations: 169.3 kB / 445.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.1408, allocations: 215.3 kB / 445.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.141, allocations: 238.9 kB / 446.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.1411, allocations: 44 kB / 446.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.236e-05/0.1412, allocations: 44 kB / 446.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.89e-05/0.1413, allocations: 107.5 kB / 446.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.1415, allocations: 266.7 kB / 446.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.1418, allocations: 0.5489 MB / 447.2 MB, free: 212 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1418, allocations: 4 kB / 447.2 MB, free: 208 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1418, allocations: 4 kB / 447.2 MB, free: 204 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1419, allocations: 0 / 447.2 MB, free: 204 kB / 318.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.001095/0.143, allocations: 0.7485 MB / 447.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.143, allocations: 15.89 kB / 448 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.616e-05/0.1431, allocations: 60.28 kB / 448 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1435, allocations: 314.4 kB / 448.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.1436, allocations: 37.38 kB / 448.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.1437, allocations: 52.28 kB / 448.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006499/0.1443, allocations: 446.7 kB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.1444, allocations: 11.91 kB / 448.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.1444, allocations: 16 kB / 448.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1444, allocations: 8 kB / 448.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004783/0.1449, allocations: 317.9 kB / 449.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.1466, allocations: 1.153 MB / 450.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007117/0.1473, allocations: 489.1 kB / 450.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.1477, allocations: 219.8 kB / 451 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1477, allocations: 8.438 kB / 451 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.1478, allocations: 46.98 kB / 451.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.224e-06/0.1478, allocations: 0 / 451.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=74): time 0.002899/0.1507, allocations: 2.131 MB / 453.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.1508, allocations: 93.61 kB / 453.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000266/0.151, allocations: 258.9 kB / 453.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.1511, allocations: 41.64 kB / 453.6 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.1513, allocations: 209 kB / 453.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.1515, allocations: 268 kB / 454.1 MB, free: 8.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1516, allocations: 122.7 kB / 454.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002321/0.1519, allocations: 362.7 kB / 454.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002507/0.1521, allocations: 157.9 kB / 454.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003651/0.1525, allocations: 272.9 kB / 455 MB, free: 7.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000687/0.1532, allocations: 474.8 kB / 455.4 MB, free: 7.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1532, allocations: 4 kB / 455.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0008585/0.1541, allocations: 0.568 MB / 456 MB, free: 6.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.1541, allocations: 8 kB / 456 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.1542, allocations: 0 / 456 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/0.1542, allocations: 8 kB / 456 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/0.1548, allocations: 175.7 kB / 456.2 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.1548, allocations: 8.281 kB / 456.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.1551, allocations: 27.98 kB / 456.2 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-05/0.1552, allocations: 31.94 kB / 456.3 MB, free: 6.621 MB / 334.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.0002244/0.1554, allocations: 177.7 kB / 456.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1555, allocations: 47.44 kB / 456.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.1557, allocations: 55.64 kB / 456.5 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.1557, allocations: 8 kB / 456.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.725e-05/0.1557, allocations: 4 kB / 456.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.1557, allocations: 3.984 kB / 456.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.1579, allocations: 1.45 MB / 458 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.1579, allocations: 0 / 458 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005817/0.1585, allocations: 155.8 kB / 458.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1585, allocations: 4 kB / 458.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.1586, allocations: 27.92 kB / 458.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/0.1586, allocations: 8 kB / 458.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.1586, allocations: 7.938 kB / 458.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.1597, allocations: 0.9117 MB / 459.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.1598, allocations: 120.6 kB / 459.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.1599, allocations: 20 kB / 459.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002551/0.1602, allocations: 20 kB / 459.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/0.1602, allocations: 48.38 kB / 459.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.1603, allocations: 27.94 kB / 459.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001711/0.1605, allocations: 181.9 kB / 459.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1605, allocations: 0 / 459.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00052/0.161, allocations: 148 kB / 459.7 MB, free: 3.027 MB / 334.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.0001616/0.1612, allocations: 119 kB / 459.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008812/0.162, allocations: 491.6 kB / 460.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/0.1621, allocations: 7.938 kB / 460.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.1624, allocations: 239.3 kB / 460.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008872/0.1633, allocations: 124.7 kB / 460.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.1659, allocations: 1.664 MB / 462.3 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004374/0.1663, allocations: 0.8447 MB / 463.1 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.1665, allocations: 64.64 kB / 463.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.1666, allocations: 39.44 kB / 463.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1666, allocations: 0 / 463.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of Templates: time 0.01137/0.178, allocations: 5.289 MB / 468.5 MB, free: 10.12 MB / 350.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches