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.001316/0.001316, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001533/0.001533, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2704/0.2704, allocations: 44.94 MB / 358.8 MB, free: 6.039 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.002125/0.002125, allocations: 67.91 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3917, allocations: 65.47 MB / 0.5574 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004484/0.3962, allocations: 2.621 MB / 0.56 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.3984, allocations: 0.9504 MB / 0.5609 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.3986, allocations: 15.88 kB / 0.5609 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.3988, allocations: 51.45 kB / 0.561 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.399, allocations: 103.1 kB / 0.5611 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.3996, allocations: 159.5 kB / 0.5612 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004555/0.4001, allocations: 374.2 kB / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.4003, allocations: 57.34 kB / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.4005, allocations: 147.4 kB / 0.5618 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.4007, allocations: 135.3 kB / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.549e-05/0.4007, allocations: 24 kB / 0.5619 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.4008, allocations: 44 kB / 0.562 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.346e-05/0.4009, allocations: 67.77 kB / 0.562 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.4011, allocations: 139.4 kB / 0.5622 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.4015, allocations: 380.8 kB / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4015, allocations: 0 / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4016, allocations: 0 / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.4016, allocations: 0 / 0.5625 GB, free: 2.238 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.001022/0.4026, allocations: 0.5403 MB / 0.5631 GB, free: 1.668 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.4026, allocations: 8.031 kB / 0.5631 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003201/0.4029, allocations: 60.67 kB / 0.5631 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.4034, allocations: 210.7 kB / 0.5633 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.4034, allocations: 25.03 kB / 0.5634 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.4035, allocations: 40.31 kB / 0.5634 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.404, allocations: 306.3 kB / 0.5637 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.873e-05/0.4041, allocations: 11.88 kB / 0.5637 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.666e-05/0.4041, allocations: 16 kB / 0.5637 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.4041, allocations: 8 kB / 0.5637 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.4045, allocations: 167.8 kB / 0.5639 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002082/0.4066, allocations: 1.183 MB / 0.565 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.4071, allocations: 241 kB / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.4072, allocations: 76.28 kB / 0.5653 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.4072, allocations: 11.92 kB / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.4073, allocations: 38.56 kB / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 2.504e-06/0.4073, allocations: 0 / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005988/0.4079, allocations: 213.3 kB / 0.5656 GB, free: 14.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/0.408, allocations: 166.1 kB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.4084, allocations: 216.1 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.4084, allocations: 29.7 kB / 0.566 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.4086, allocations: 204.5 kB / 0.5662 GB, free: 14.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.936e-05/0.4087, allocations: 95.22 kB / 0.5663 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.4088, allocations: 61.66 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002667/0.4091, allocations: 338.8 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.4092, allocations: 63.97 kB / 0.5667 GB, free: 13.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.4095, allocations: 205.9 kB / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.4099, allocations: 293.8 kB / 0.5672 GB, free: 13.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.4099, allocations: 4 kB / 0.5672 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005026/0.4104, allocations: 317.5 kB / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.4105, allocations: 12 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.4105, allocations: 11.92 kB / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.4105, allocations: 8 kB / 0.5675 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.4108, allocations: 83.91 kB / 0.5676 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.4108, allocations: 7.938 kB / 0.5676 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.411, allocations: 39.72 kB / 0.5677 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.411, allocations: 16 kB / 0.5677 GB, free: 12.54 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.0001608/0.4111, allocations: 149.7 kB / 0.5678 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.4113, allocations: 19.91 kB / 0.5678 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.4114, allocations: 98.91 kB / 0.5679 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.4115, allocations: 4 kB / 0.5679 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4115, allocations: 4 kB / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.4115, allocations: 0 / 0.5679 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004858/0.412, allocations: 221.2 kB / 0.5681 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.412, allocations: 4 kB / 0.5681 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003295/0.4123, allocations: 67.91 kB / 0.5682 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.4123, allocations: 3.938 kB / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4123, allocations: 11.98 kB / 0.5682 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.4123, allocations: 7.938 kB / 0.5682 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4123, allocations: 4 kB / 0.5682 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006582/0.413, allocations: 0.6354 MB / 0.5689 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.413, allocations: 23.8 kB / 0.5689 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.4131, allocations: 8.25 kB / 0.5689 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002437/0.4133, allocations: 11.94 kB / 0.5689 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.4133, allocations: 19.97 kB / 0.5689 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.4133, allocations: 8 kB / 0.5689 GB, free: 11.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.4135, allocations: 137.9 kB / 0.5691 GB, free: 11.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4135, allocations: 0 / 0.5691 GB, free: 11.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005195/0.414, allocations: 91.78 kB / 0.5691 GB, free: 10.96 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.000135/0.4141, allocations: 111.2 kB / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.4145, allocations: 175.7 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4145, allocations: 0 / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.4146, allocations: 69.47 kB / 0.5695 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/0.4154, allocations: 69.48 kB / 0.5696 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.4174, allocations: 1.127 MB / 0.5707 GB, free: 9.371 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.4177, allocations: 169.1 kB / 0.5708 GB, free: 9.184 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001172/0.4178, allocations: 30.95 kB / 0.5708 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.4179, allocations: 19.62 kB / 0.5709 GB, free: 9.137 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4179, allocations: 4 kB / 0.5709 GB, free: 9.133 MB / 414.1 MB Notification: Performance of Templates: time 0.007201/0.4251, allocations: 2.89 MB / 0.5737 GB, free: 6.305 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.257107416167855]