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.0008238/0.0008238, allocations: 96.78 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008509/0.0008507, allocations: 172.9 kB / 16.58 MB, free: 5.68 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.807/1.807, allocations: 205.4 MB / 222.7 MB, free: 5.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4077/0.4077, allocations: 43.56 MB / 314.6 MB, free: 8.809 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.000523/0.000523, allocations: 16 kB / 383.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1422, allocations: 58.87 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.003189/0.1455, allocations: 2.788 MB / 445.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.1469, allocations: 0.8309 MB / 446.4 MB, free: 9.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001674/0.1471, allocations: 11.94 kB / 446.4 MB, free: 9.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.1473, allocations: 43.62 kB / 446.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002606/0.1475, allocations: 154.8 kB / 446.6 MB, free: 9.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.1477, allocations: 75.92 kB / 446.7 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005037/0.1483, allocations: 0.5519 MB / 447.3 MB, free: 8.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002913/0.1486, allocations: 140.6 kB / 447.4 MB, free: 8.398 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.1488, allocations: 187.2 kB / 447.6 MB, free: 8.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1491, allocations: 207.1 kB / 447.8 MB, free: 8.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.1492, allocations: 20 kB / 447.8 MB, free: 7.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.267e-05/0.1492, allocations: 28 kB / 447.8 MB, free: 7.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.1493, allocations: 79.67 kB / 447.9 MB, free: 7.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.1494, allocations: 121.5 kB / 448 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.1499, allocations: 394.8 kB / 448.4 MB, free: 7.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.1499, allocations: 0 / 448.4 MB, free: 7.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1499, allocations: 4 kB / 448.4 MB, free: 7.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.527e-06/0.1499, allocations: 0 / 448.4 MB, free: 7.371 MB / 382.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.001071/0.151, allocations: 0.6936 MB / 449.1 MB, free: 6.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.151, allocations: 12.03 kB / 449.1 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.27e-05/0.1511, allocations: 55.34 kB / 449.2 MB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.1515, allocations: 301.4 kB / 449.5 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.1516, allocations: 40.94 kB / 449.5 MB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.1517, allocations: 51.91 kB / 449.6 MB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006942/0.1524, allocations: 434.6 kB / 450 MB, free: 5.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.1524, allocations: 7.906 kB / 450 MB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.1525, allocations: 20 kB / 450 MB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.1525, allocations: 19.94 kB / 450 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004875/0.153, allocations: 316.4 kB / 450.3 MB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.1546, allocations: 1.146 MB / 451.5 MB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007065/0.1553, allocations: 493 kB / 452 MB, free: 3.621 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.1556, allocations: 210.9 kB / 452.2 MB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.1557, allocations: 8.438 kB / 452.2 MB, free: 3.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1557, allocations: 42.94 kB / 452.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 2.194e-06/0.1557, allocations: 0 / 452.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=74): time 0.003055/0.1588, allocations: 2.135 MB / 454.4 MB, free: 1.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.1589, allocations: 85.67 kB / 454.4 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.1591, allocations: 247 kB / 454.7 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.1592, allocations: 41.7 kB / 454.7 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.1593, allocations: 209 kB / 454.9 MB, free: 444 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.1595, allocations: 268 kB / 455.2 MB, free: 172 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.423e-05/0.1595, allocations: 16 kB / 455.2 MB, free: 156 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.2768/0.4363, allocations: 354.8 kB / 455.6 MB, free: 45.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005228/0.4369, allocations: 149.6 kB / 455.7 MB, free: 45.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003961/0.4373, allocations: 275.5 kB / 456 MB, free: 45.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003689/0.4377, allocations: 203.2 kB / 456.2 MB, free: 45.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4377, allocations: 0 / 456.2 MB, free: 45.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001038/0.4387, allocations: 0.5622 MB / 456.7 MB, free: 45.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.4388, allocations: 6.156 kB / 456.7 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.4388, allocations: 3.031 kB / 456.7 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.973e-05/0.4389, allocations: 10.75 kB / 456.8 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000587/0.4394, allocations: 176 kB / 456.9 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.4395, allocations: 9.094 kB / 456.9 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.4398, allocations: 22.12 kB / 457 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.4399, allocations: 28.06 kB / 457 MB, free: 45.66 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.4401, allocations: 180.6 kB / 457.2 MB, free: 45.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.895e-05/0.4403, allocations: 48.22 kB / 457.2 MB, free: 45.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.4404, allocations: 57.14 kB / 457.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.4404, allocations: 12.5 kB / 457.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.4404, allocations: 2.516 kB / 457.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.4405, allocations: 7.469 kB / 457.3 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/0.4424, allocations: 1.448 MB / 458.7 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.4424, allocations: 7.75 kB / 458.7 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000554/0.443, allocations: 155.6 kB / 458.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/0.443, allocations: 9.141 kB / 458.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.443, allocations: 16.25 kB / 458.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.131e-06/0.443, allocations: 5.594 kB / 458.9 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.443, allocations: 13.75 kB / 458.9 MB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009532/0.444, allocations: 0.9029 MB / 459.8 MB, free: 44.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/0.4441, allocations: 118.5 kB / 460 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.4442, allocations: 16.94 kB / 460 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.4444, allocations: 22.06 kB / 460 MB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.496e-05/0.4445, allocations: 52.25 kB / 460 MB, free: 44.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.4445, allocations: 24.41 kB / 460.1 MB, free: 44.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.4447, allocations: 176.1 kB / 460.2 MB, free: 44.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4447, allocations: 0 / 460.2 MB, free: 44.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005087/0.4452, allocations: 144.3 kB / 460.4 MB, free: 44.43 MB / 382.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 (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.0001333/0.4453, allocations: 126.5 kB / 460.5 MB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005947/0.4459, allocations: 439.8 kB / 460.9 MB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4459, allocations: 6.875 kB / 460.9 MB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.4462, allocations: 236.6 kB / 461.2 MB, free: 44.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007937/0.447, allocations: 114.8 kB / 461.3 MB, free: 44.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.4493, allocations: 2.039 MB / 463.3 MB, free: 42.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.4496, allocations: 0.8482 MB / 464.2 MB, free: 42.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001867/0.4497, allocations: 59.11 kB / 464.2 MB, free: 42.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.413e-05/0.4498, allocations: 41.28 kB / 464.3 MB, free: 42.22 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4499, allocations: 3.094 kB / 464.3 MB, free: 42.22 MB / 382.1 MB Notification: Performance of Templates: time 0.009122/0.459, allocations: 4.804 MB / 469.1 MB, free: 41.88 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches