Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001782/0.001782, 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.002202/0.002202, allocations: 212.3 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2392/0.2392, allocations: 46.96 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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=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_4.1.0_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_4.1.0_ModelicaTest.Rotational.TestBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 71.89 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4014, allocations: 66.04 MB / 0.5611 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004889/0.4063, allocations: 2.813 MB / 0.5638 GB, free: 1.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002231/0.4086, allocations: 1.013 MB / 0.5648 GB, free: 356 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.4087, allocations: 15.88 kB / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002161/0.409, allocations: 59.38 kB / 0.5649 GB, free: 280 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002578/0.4092, allocations: 130.9 kB / 0.565 GB, free: 148 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006305/0.4099, allocations: 171.6 kB / 0.5652 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000573/0.4104, allocations: 457.8 kB / 0.5656 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.4107, allocations: 79.92 kB / 0.5657 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.4109, allocations: 167.4 kB / 0.5658 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002583/0.4111, allocations: 159.2 kB / 0.566 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.569e-05/0.4112, allocations: 32 kB / 0.566 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.4113, allocations: 51.98 kB / 0.5661 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.668e-05/0.4114, allocations: 79.69 kB / 0.5661 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000196/0.4116, allocations: 159.3 kB / 0.5663 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.4122, allocations: 448.5 kB / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4122, allocations: 0 / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4122, allocations: 0 / 0.5667 GB, free: 14.37 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.4123, allocations: 0 / 0.5667 GB, free: 14.37 MB / 414.1 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.001111/0.4134, allocations: 0.5988 MB / 0.5673 GB, free: 13.74 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4134, allocations: 8.031 kB / 0.5673 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003091/0.4137, allocations: 64.64 kB / 0.5674 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004695/0.4142, allocations: 233.6 kB / 0.5676 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.4142, allocations: 25.38 kB / 0.5676 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.353e-05/0.4143, allocations: 48.33 kB / 0.5677 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006847/0.415, allocations: 367.5 kB / 0.568 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.082e-05/0.415, allocations: 4 kB / 0.568 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.4151, allocations: 16 kB / 0.568 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4151, allocations: 8 kB / 0.568 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.4155, allocations: 219.7 kB / 0.5683 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.4179, allocations: 1.39 MB / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/0.4185, allocations: 303.7 kB / 0.5699 GB, free: 10.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.4186, allocations: 89.17 kB / 0.57 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.4187, allocations: 11.88 kB / 0.57 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4187, allocations: 38.56 kB / 0.57 GB, free: 10.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.593e-06/0.4187, allocations: 4 kB / 0.57 GB, free: 10.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007681/0.4195, allocations: 269.2 kB / 0.5703 GB, free: 10.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.4196, allocations: 183.9 kB / 0.5705 GB, free: 10.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.4198, allocations: 237 kB / 0.5707 GB, free: 9.984 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.4199, allocations: 29.7 kB / 0.5707 GB, free: 9.949 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.42, allocations: 224.3 kB / 0.5709 GB, free: 9.727 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/0.4201, allocations: 111.1 kB / 0.571 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.4202, allocations: 74.12 kB / 0.5711 GB, free: 9.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4204, allocations: 334.8 kB / 0.5714 GB, free: 9.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.4206, allocations: 92.89 kB / 0.5715 GB, free: 9.113 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.4209, allocations: 245.8 kB / 0.5718 GB, free: 8.797 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.4215, allocations: 361.1 kB / 0.5721 GB, free: 8.367 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4215, allocations: 0 / 0.5721 GB, free: 8.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006481/0.4222, allocations: 385.3 kB / 0.5725 GB, free: 7.984 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4222, allocations: 8.062 kB / 0.5725 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4222, allocations: 8.75 kB / 0.5725 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/0.4222, allocations: 8 kB / 0.5725 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.4226, allocations: 111.8 kB / 0.5726 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.4226, allocations: 8 kB / 0.5726 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.4228, allocations: 43.67 kB / 0.5726 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.4229, allocations: 20 kB / 0.5727 GB, free: 7.781 MB / 414.1 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.0001835/0.423, allocations: 165.6 kB / 0.5728 GB, free: 7.609 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.4232, allocations: 31.81 kB / 0.5729 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.4234, allocations: 91.33 kB / 0.5729 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.4234, allocations: 8.312 kB / 0.5729 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.4234, allocations: 0 / 0.5729 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.4234, allocations: 3.984 kB / 0.573 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006213/0.424, allocations: 253.2 kB / 0.5732 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.424, allocations: 11.88 kB / 0.5732 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003948/0.4244, allocations: 79.95 kB / 0.5733 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.4244, allocations: 3.938 kB / 0.5733 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.4244, allocations: 8 kB / 0.5733 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.4244, allocations: 4 kB / 0.5733 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.4244, allocations: 0 / 0.5733 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008358/0.4253, allocations: 0.778 MB / 0.5741 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.4254, allocations: 35.72 kB / 0.5741 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.4254, allocations: 8 kB / 0.5741 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003184/0.4257, allocations: 8 kB / 0.5741 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.4258, allocations: 19.97 kB / 0.5741 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.4258, allocations: 11.98 kB / 0.5741 GB, free: 6.203 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001522/0.426, allocations: 156.5 kB / 0.5743 GB, free: 6.051 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.426, allocations: 0 / 0.5743 GB, free: 6.051 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006404/0.4266, allocations: 95.84 kB / 0.5744 GB, free: 5.957 MB / 414.1 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.0001272/0.4267, allocations: 115.1 kB / 0.5745 GB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.4272, allocations: 220.8 kB / 0.5747 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4272, allocations: 4 kB / 0.5747 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.4274, allocations: 83.97 kB / 0.5748 GB, free: 5.535 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009106/0.4283, allocations: 84.17 kB / 0.5749 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/0.4305, allocations: 1.312 MB / 0.5761 GB, free: 4.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.4307, allocations: 194.5 kB / 0.5763 GB, free: 3.895 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001486/0.4309, allocations: 34.95 kB / 0.5764 GB, free: 3.859 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.82e-05/0.4309, allocations: 23.44 kB / 0.5764 GB, free: 3.836 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.431, allocations: 0 / 0.5764 GB, free: 3.836 MB / 414.1 MB Notification: Performance of Templates: time 0.008527/0.4395, allocations: 3.523 MB / 0.5798 GB, free: 392 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.437680572271347]