Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001097/0.001097, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001149/0.00115, allocations: 193.3 kB / 18.9 MB, free: 4.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 242.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.211/0.211, allocations: 44.17 MB / 336.9 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 64.14 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1164, allocations: 60.84 MB / 469.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.005034/0.1215, allocations: 3.297 MB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.1232, allocations: 0.7907 MB / 473.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000445/0.1237, allocations: 11.94 kB / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.124, allocations: 55.55 kB / 473.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004959/0.1245, allocations: 146.8 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002916/0.1248, allocations: 91.92 kB / 473.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007158/0.1255, allocations: 0.5948 MB / 474.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003531/0.1259, allocations: 181.5 kB / 474.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003348/0.1262, allocations: 215.2 kB / 474.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.1266, allocations: 246.9 kB / 475 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.515e-05/0.1267, allocations: 40 kB / 475 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.1268, allocations: 44 kB / 475.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.778e-05/0.1269, allocations: 103.6 kB / 475.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.1272, allocations: 262.8 kB / 475.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004051/0.1276, allocations: 426.9 kB / 475.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1276, allocations: 0 / 475.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1276, allocations: 0 / 475.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.779e-05/0.1277, allocations: 4 kB / 475.9 MB, free: 8.23 MB / 350.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.001139/0.1288, allocations: 0.759 MB / 476.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1289, allocations: 12.03 kB / 476.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.129, allocations: 56.38 kB / 476.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.1294, allocations: 314.5 kB / 477 MB, free: 7.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.1294, allocations: 41.31 kB / 477 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.449e-05/0.1295, allocations: 56.28 kB / 477.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006993/0.1302, allocations: 434.9 kB / 477.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.1302, allocations: 7.906 kB / 477.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.1303, allocations: 20 kB / 477.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.1303, allocations: 12 kB / 477.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004759/0.1308, allocations: 316.4 kB / 477.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.1324, allocations: 1.154 MB / 479 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.1331, allocations: 488.8 kB / 479.5 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.1334, allocations: 215 kB / 479.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.1334, allocations: 8.438 kB / 479.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.1335, allocations: 38.94 kB / 479.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.184e-06/0.1335, allocations: 0 / 479.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.002829/0.1363, allocations: 2.14 MB / 481.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.1364, allocations: 85.67 kB / 482 MB, free: 1.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002293/0.1366, allocations: 262.9 kB / 482.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.1367, allocations: 33.7 kB / 482.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.1368, allocations: 213 kB / 482.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.137, allocations: 268.1 kB / 482.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.1371, allocations: 118.6 kB / 482.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1373, allocations: 362.7 kB / 483.2 MB, free: 464 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.1375, allocations: 157.9 kB / 483.3 MB, free: 308 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.1378, allocations: 276.9 kB / 483.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005666/0.1384, allocations: 478.9 kB / 484.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1384, allocations: 4 kB / 484.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.0007257/0.1391, allocations: 0.5591 MB / 484.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1392, allocations: 4 kB / 484.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1392, allocations: 4 kB / 484.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.1392, allocations: 8 kB / 484.7 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.1398, allocations: 179.7 kB / 484.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.1398, allocations: 8.266 kB / 484.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.14, allocations: 28 kB / 484.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.1401, allocations: 27.94 kB / 484.9 MB, free: 14.66 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.0001839/0.1403, allocations: 181.6 kB / 485.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.1404, allocations: 43.53 kB / 485.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.45e-05/0.1405, allocations: 59.64 kB / 485.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-06/0.1405, allocations: 8 kB / 485.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.1405, allocations: 8 kB / 485.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.1405, allocations: 7.984 kB / 485.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.1423, allocations: 1.45 MB / 486.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.1423, allocations: 4 kB / 486.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/0.1429, allocations: 155.8 kB / 486.8 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/0.143, allocations: 7.984 kB / 486.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.967e-05/0.143, allocations: 19.94 kB / 486.8 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.143, allocations: 7.938 kB / 486.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.143, allocations: 4 kB / 486.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009964/0.144, allocations: 0.908 MB / 487.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.658e-05/0.1441, allocations: 124.5 kB / 487.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.1442, allocations: 19.94 kB / 487.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.1445, allocations: 19.98 kB / 487.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.1446, allocations: 52.33 kB / 488 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.1446, allocations: 23.98 kB / 488 MB, free: 11.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.1448, allocations: 181.8 kB / 488.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1448, allocations: 0 / 488.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005128/0.1453, allocations: 144 kB / 488.3 MB, free: 11.07 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.0001353/0.1454, allocations: 131 kB / 488.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008301/0.1463, allocations: 487.6 kB / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1463, allocations: 0 / 488.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002852/0.1466, allocations: 235.5 kB / 489.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008749/0.1475, allocations: 126.6 kB / 489.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.1501, allocations: 1.9 MB / 491.2 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.1505, allocations: 0.8524 MB / 492 MB, free: 7.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.1506, allocations: 43.44 kB / 492.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of SimCode: time 1.883e-06/0.1506, allocations: 0 / 492.1 MB, free: 7.215 MB / 366.1 MB Notification: Performance of Templates: time 0.009317/0.16, allocations: 5.952 MB / 498 MB, free: 1.285 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/InitializationConversion/SpringDamper/SpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.InitializationConversion.SpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches