Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2321/0.2321, allocations: 44.92 MB / 358.8 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003411/0.003411, allocations: 71.89 kB / 0.4936 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.4019, allocations: 65.46 MB / 0.5575 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.00468/0.4066, allocations: 2.82 MB / 0.5602 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.4086, allocations: 1.024 MB / 0.5612 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.4087, allocations: 11.94 kB / 0.5613 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002217/0.409, allocations: 55.44 kB / 0.5613 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.4092, allocations: 107.1 kB / 0.5614 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005343/0.4097, allocations: 151.6 kB / 0.5616 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004855/0.4102, allocations: 390.1 kB / 0.5619 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.4104, allocations: 61.34 kB / 0.562 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.4106, allocations: 139.5 kB / 0.5621 GB, free: 2.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.4108, allocations: 147.3 kB / 0.5623 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.4108, allocations: 28 kB / 0.5623 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.411, allocations: 47.98 kB / 0.5623 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.284e-05/0.411, allocations: 63.77 kB / 0.5624 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.4112, allocations: 163.2 kB / 0.5625 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.4117, allocations: 376.8 kB / 0.5629 GB, free: 2.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.4117, allocations: 0 / 0.5629 GB, free: 2.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4117, allocations: 4 kB / 0.5629 GB, free: 2.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.4117, allocations: 4 kB / 0.5629 GB, free: 2.133 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009651/0.4126, allocations: 0.5286 MB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.4127, allocations: 12.03 kB / 0.5634 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003211/0.413, allocations: 60.67 kB / 0.5635 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.4134, allocations: 218.7 kB / 0.5637 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.4134, allocations: 28.97 kB / 0.5637 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.56e-05/0.4135, allocations: 40.33 kB / 0.5638 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.414, allocations: 306.2 kB / 0.5641 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.414, allocations: 7.953 kB / 0.5641 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/0.4141, allocations: 12 kB / 0.5641 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.4141, allocations: 8 kB / 0.5641 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.4144, allocations: 179.8 kB / 0.5643 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.4166, allocations: 1.277 MB / 0.5655 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.417, allocations: 241 kB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.4172, allocations: 80.25 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.4172, allocations: 4 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.4172, allocations: 38.56 kB / 0.5659 GB, free: 14.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.824e-06/0.4172, allocations: 0 / 0.5659 GB, free: 14.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005385/0.4178, allocations: 229.4 kB / 0.5661 GB, free: 14.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.4179, allocations: 158.2 kB / 0.5662 GB, free: 14.46 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.4181, allocations: 216.9 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.4182, allocations: 33.83 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.4183, allocations: 200.4 kB / 0.5667 GB, free: 13.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.972e-05/0.4184, allocations: 91.22 kB / 0.5667 GB, free: 13.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.204e-05/0.4185, allocations: 61.7 kB / 0.5668 GB, free: 13.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.4186, allocations: 338.8 kB / 0.5671 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.4188, allocations: 63.91 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.419, allocations: 213.9 kB / 0.5674 GB, free: 13.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004172/0.4194, allocations: 289.8 kB / 0.5677 GB, free: 12.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4194, allocations: 0 / 0.5677 GB, free: 12.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005266/0.42, allocations: 329.4 kB / 0.568 GB, free: 12.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.42, allocations: 12.03 kB / 0.568 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.42, allocations: 7.938 kB / 0.568 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.42, allocations: 8 kB / 0.568 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.4203, allocations: 83.91 kB / 0.5681 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.698e-05/0.4203, allocations: 15.92 kB / 0.5681 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001794/0.4205, allocations: 31.78 kB / 0.5681 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.4206, allocations: 16 kB / 0.5681 GB, free: 12.31 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (44): * Single equations (assignments): 44 * 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.0001668/0.4207, allocations: 153.8 kB / 0.5683 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.4209, allocations: 35.75 kB / 0.5683 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.421, allocations: 83.39 kB / 0.5684 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.421, allocations: 4 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.4211, allocations: 4 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.4211, allocations: 4.547 kB / 0.5684 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006174/0.4217, allocations: 280.5 kB / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.4217, allocations: 0 / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.422, allocations: 75.89 kB / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.422, allocations: 3.938 kB / 0.5688 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.4221, allocations: 12 kB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.4221, allocations: 4 kB / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4221, allocations: 0 / 0.5688 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007292/0.4228, allocations: 0.6356 MB / 0.5694 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.4228, allocations: 35.73 kB / 0.5694 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.691e-05/0.4229, allocations: 8 kB / 0.5694 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.4232, allocations: 8 kB / 0.5694 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.654e-05/0.4232, allocations: 15.97 kB / 0.5695 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.4232, allocations: 8.109 kB / 0.5695 GB, free: 10.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001513/0.4234, allocations: 160.4 kB / 0.5696 GB, free: 10.72 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4234, allocations: 0 / 0.5696 GB, free: 10.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005427/0.4239, allocations: 79.89 kB / 0.5697 GB, free: 10.64 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.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 (23): * Single equations (assignments): 23 * 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.0001284/0.424, allocations: 107.1 kB / 0.5698 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003682/0.4244, allocations: 175.7 kB / 0.57 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4244, allocations: 0 / 0.57 GB, free: 10.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.4245, allocations: 72.91 kB / 0.57 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008286/0.4254, allocations: 76.02 kB / 0.5701 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002028/0.4274, allocations: 1.135 MB / 0.5712 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.4279, allocations: 0.7716 MB / 0.572 GB, free: 8.254 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.428, allocations: 30.97 kB / 0.572 GB, free: 8.223 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.082e-05/0.428, allocations: 23.42 kB / 0.572 GB, free: 8.199 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.428, allocations: 0 / 0.572 GB, free: 8.199 MB / 414.1 MB Notification: Performance of Templates: time 0.00712/0.4352, allocations: 2.746 MB / 0.5747 GB, free: 5.48 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.508065801113844]