Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 159.9 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.023/1.023, allocations: 177 MB / 205.2 MB, free: 5.035 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2414/0.2414, allocations: 34.86 MB / 296.6 MB, free: 472 kB / 266.7 MB " [Timeout remaining time 180] 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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 325.9 MB, free: 7.125 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.893e-05/2.047e-05, allocations: 2.312 kB / 325.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003158/0.003179, allocations: 1.999 MB / 327.9 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000695/0.003874, allocations: 0.5579 MB / 328.5 MB, free: 4.547 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.776e-05/0.003941, allocations: 4 kB / 328.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.004045, allocations: 27.78 kB / 328.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.75e-05/0.004113, allocations: 39.58 kB / 328.6 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001511/0.004264, allocations: 47.88 kB / 328.6 MB, free: 4.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.004392, allocations: 155.8 kB / 328.8 MB, free: 4.277 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.004493, allocations: 50.42 kB / 328.8 MB, free: 4.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.004623, allocations: 95.78 kB / 328.9 MB, free: 4.137 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.372e-05/0.004687, allocations: 47.88 kB / 329 MB, free: 4.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.004706, allocations: 12 kB / 329 MB, free: 4.078 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.905e-05/0.004755, allocations: 16 kB / 329 MB, free: 4.062 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.099e-05/0.004776, allocations: 35.83 kB / 329 MB, free: 4.027 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.004813, allocations: 51.84 kB / 329.1 MB, free: 3.977 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.004957, allocations: 103.6 kB / 329.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.004959, allocations: 0 / 329.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.00496, allocations: 0 / 329.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.004963, allocations: 0 / 329.2 MB, free: 3.875 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000321/0.005284, allocations: 346.3 kB / 329.5 MB, free: 3.516 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.005311, allocations: 8.031 kB / 329.5 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.452e-05/0.005406, allocations: 32.91 kB / 329.5 MB, free: 3.477 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.005533, allocations: 141.6 kB / 329.7 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.005543, allocations: 8.375 kB / 329.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.005565, allocations: 16.38 kB / 329.7 MB, free: 3.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.005675, allocations: 106.9 kB / 329.8 MB, free: 3.176 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.005686, allocations: 4.188 kB / 329.8 MB, free: 3.172 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.005696, allocations: 8.125 kB / 329.8 MB, free: 3.164 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.005701, allocations: 4 kB / 329.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.685e-05/0.005748, allocations: 31.92 kB / 329.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.006082, allocations: 291.8 kB / 330.1 MB, free: 2.828 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.444e-05/0.006177, allocations: 78.47 kB / 330.2 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.25e-05/0.006209, allocations: 35.22 kB / 330.3 MB, free: 2.707 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.056e-05/0.00622, allocations: 0 / 330.3 MB, free: 2.707 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.006237, allocations: 34.56 kB / 330.3 MB, free: 2.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 7.02e-07/0.006238, allocations: 0 / 330.3 MB, free: 2.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007403/0.006978, allocations: 0.5494 MB / 330.8 MB, free: 2.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.489e-05/0.007003, allocations: 51.41 kB / 330.9 MB, free: 1.996 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.848e-05/0.007061, allocations: 133 kB / 331 MB, free: 1.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.007072, allocations: 29.7 kB / 331 MB, free: 1.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.774e-05/0.00711, allocations: 112.4 kB / 331.2 MB, free: 1.707 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.007144, allocations: 71.31 kB / 331.2 MB, free: 1.637 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.007181, allocations: 41.69 kB / 331.3 MB, free: 1.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.269e-05/0.007244, allocations: 322.8 kB / 331.6 MB, free: 1.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.007263, allocations: 12 kB / 331.6 MB, free: 1.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.786e-05/0.007301, allocations: 48.91 kB / 331.6 MB, free: 1.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.067e-05/0.007392, allocations: 85.22 kB / 331.7 MB, free: 1.102 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.007395, allocations: 4 kB / 331.7 MB, free: 1.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001386/0.007533, allocations: 130.3 kB / 331.9 MB, free: 0.957 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.007543, allocations: 4 kB / 331.9 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.007547, allocations: 4.031 kB / 331.9 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.565e-05/0.007642, allocations: 36.83 kB / 331.9 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.007764, allocations: 47.91 kB / 331.9 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008347/0.008598, allocations: 1.434 MB / 333.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.699e-05/0.008635, allocations: 4 kB / 333.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-06/0.008642, allocations: 4 kB / 333.4 MB, free: 15.33 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.008766, allocations: 133.7 kB / 333.5 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.008787, allocations: 8 kB / 333.5 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.136e-05/0.008808, allocations: 20.77 kB / 333.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.008809, allocations: 4 kB / 333.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.008814, allocations: 0 / 333.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.008817, allocations: 48 / 333.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.009152, allocations: 350.8 kB / 333.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.009154, allocations: 0 / 333.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.009261, allocations: 39.97 kB / 333.9 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.998e-05/0.009331, allocations: 28.78 kB / 334 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.00934, allocations: 7.984 kB / 334 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005898/0.00993, allocations: 1.222 MB / 335.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009931, allocations: 3.938 kB / 335.2 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001794/0.01011, allocations: 245 kB / 335.4 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.438e-06/0.01012, allocations: 11.91 kB / 335.4 MB, free: 13.13 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.01013, allocations: 4 kB / 335.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.478e-05/0.01018, allocations: 7.938 kB / 335.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/0.01021, allocations: 19.91 kB / 335.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.01022, allocations: 8.062 kB / 335.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.152e-05/0.01024, allocations: 27.08 kB / 335.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01024, allocations: 0 / 335.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001818/0.01042, allocations: 40 kB / 335.6 MB, free: 13.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 8.062e-05/0.0105, allocations: 80.55 kB / 335.6 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002396/0.01074, allocations: 207.3 kB / 335.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.01074, allocations: 8.062 kB / 335.8 MB, free: 12.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001212/0.01086, allocations: 181.5 kB / 336 MB, free: 12.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001796/0.01104, allocations: 22.89 kB / 336 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005948/0.01164, allocations: 358.7 kB / 336.4 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.343e-05/0.01168, allocations: 76.22 kB / 336.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.076e-05/0.01171, allocations: 17.42 kB / 336.5 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.676e-05/0.01178, allocations: 67.38 kB / 336.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01178, allocations: 0 / 336.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of Templates: time 0.003585/0.01537, allocations: 1.778 MB / 338.3 MB, free: 10.19 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8635340640321374]