Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.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.001017/0.001017, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001226/0.001226, allocations: 161 kB / 24.99 MB, free: 8.805 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.034/1.034, allocations: 177 MB / 205.2 MB, free: 5.598 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.3007/0.3007, allocations: 34.87 MB / 296.6 MB, free: 0.5352 MB / 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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.275e-05, allocations: 2.312 kB / 378.7 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004667/0.004699, allocations: 3.045 MB / 381.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.00671, allocations: 1.059 MB / 382.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002099/0.00692, allocations: 11.94 kB / 382.8 MB, free: 14.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.007095, allocations: 59.31 kB / 382.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001896/0.007284, allocations: 134.8 kB / 383 MB, free: 14.11 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.007763, allocations: 179.4 kB / 383.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.008158, allocations: 477.5 kB / 383.7 MB, free: 13.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.008336, allocations: 79.97 kB / 383.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002215/0.008557, allocations: 243.5 kB / 384 MB, free: 13.13 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.008709, allocations: 131.6 kB / 384.1 MB, free: 13 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.209e-05/0.008751, allocations: 32 kB / 384.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.807e-05/0.008849, allocations: 51.98 kB / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.807e-05/0.008897, allocations: 79.66 kB / 384.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.009, allocations: 131.7 kB / 384.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003568/0.009357, allocations: 326.7 kB / 384.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.009363, allocations: 0 / 384.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.009366, allocations: 0 / 384.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.009373, allocations: 0 / 384.7 MB, free: 12.39 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001014/0.01039, allocations: 0.6949 MB / 385.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.01044, allocations: 8.031 kB / 385.4 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003265/0.01077, allocations: 92.62 kB / 385.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003406/0.01111, allocations: 240 kB / 385.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.01114, allocations: 25.38 kB / 385.8 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.0112, allocations: 36.38 kB / 385.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.01166, allocations: 329.8 kB / 386.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.01169, allocations: 12.14 kB / 386.1 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.569e-05/0.01172, allocations: 11.94 kB / 386.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.01173, allocations: 12 kB / 386.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.01198, allocations: 142.8 kB / 386.3 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002012/0.01399, allocations: 1.673 MB / 388 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004994/0.01449, allocations: 282.6 kB / 388.3 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.01459, allocations: 86.14 kB / 388.3 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.01462, allocations: 7.938 kB / 388.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.01467, allocations: 45.33 kB / 388.4 MB, free: 8.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 4.739e-06/0.01467, allocations: 4 kB / 388.4 MB, free: 8.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005278/0.0152, allocations: 225.4 kB / 388.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.887e-05/0.01529, allocations: 187.9 kB / 388.8 MB, free: 7.969 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.01551, allocations: 280.2 kB / 389.1 MB, free: 7.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.01553, allocations: 33.7 kB / 389.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.01567, allocations: 266.9 kB / 389.4 MB, free: 7.375 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.282e-05/0.01574, allocations: 111.1 kB / 389.5 MB, free: 7.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.984e-05/0.01583, allocations: 83.75 kB / 389.6 MB, free: 7.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.016, allocations: 0.5117 MB / 390.1 MB, free: 6.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.244e-05/0.01609, allocations: 44.97 kB / 390.1 MB, free: 6.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.0163, allocations: 285.2 kB / 390.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003685/0.01667, allocations: 355.8 kB / 390.7 MB, free: 5.773 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.01668, allocations: 4 kB / 390.7 MB, free: 5.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006277/0.0173, allocations: 337.6 kB / 391.1 MB, free: 5.434 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.01734, allocations: 14.59 kB / 391.1 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.01736, allocations: 4.625 kB / 391.1 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.01739, allocations: 8 kB / 391.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.01766, allocations: 107.8 kB / 391.2 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.079e-05/0.01769, allocations: 11.94 kB / 391.2 MB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.01786, allocations: 43.72 kB / 391.3 MB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.01788, allocations: 20 kB / 391.3 MB, free: 5.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001578/0.01803, allocations: 184.4 kB / 391.5 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.01814, allocations: 39.8 kB / 391.5 MB, free: 5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000202/0.01834, allocations: 83.45 kB / 391.6 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.333e-06/0.01835, allocations: 4 kB / 391.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.01836, allocations: 11.97 kB / 391.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.01836, allocations: 4 kB / 391.6 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.01887, allocations: 248.4 kB / 391.8 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.01888, allocations: 0 / 391.8 MB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.01912, allocations: 75.91 kB / 391.9 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.01913, allocations: 4 kB / 391.9 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.01916, allocations: 15.92 kB / 391.9 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.01917, allocations: 0 / 391.9 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/0.01917, allocations: 7.938 kB / 391.9 MB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.01987, allocations: 0.9698 MB / 392.9 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.01992, allocations: 35.75 kB / 392.9 MB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.01996, allocations: 11.94 kB / 393 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.02014, allocations: 8 kB / 393 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.02021, allocations: 31.89 kB / 393 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.02022, allocations: 4 kB / 393 MB, free: 3.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001177/0.02034, allocations: 193.1 kB / 393.2 MB, free: 3.238 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02034, allocations: 0 / 393.2 MB, free: 3.238 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005221/0.02086, allocations: 99.78 kB / 393.3 MB, free: 3.141 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * 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 (27): * Single equations (assignments): 27 * 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.02102, allocations: 103.7 kB / 393.4 MB, free: 3.031 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00037/0.02139, allocations: 192.8 kB / 393.6 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.02139, allocations: 0 / 393.6 MB, free: 2.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.831e-05/0.02149, allocations: 83.52 kB / 393.7 MB, free: 2.754 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000673/0.02216, allocations: 86.08 kB / 393.7 MB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.02409, allocations: 1.039 MB / 394.8 MB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.0242, allocations: 104.6 kB / 394.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.02435, allocations: 30.97 kB / 394.9 MB, free: 1.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.841e-05/0.02441, allocations: 24.5 kB / 394.9 MB, free: 1.402 MB / 362.7 MB Notification: Performance of SimCode: time 2.084e-06/0.02442, allocations: 0 / 394.9 MB, free: 1.402 MB / 362.7 MB Notification: Performance of Templates: time 0.007111/0.03153, allocations: 3.05 MB / 398 MB, free: 14.43 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.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: 3.4267978370189667]