Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.0008373/0.0008373, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001109/0.001109, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.868/0.868, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.139e-05/1.269e-05, allocations: 12.81 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002533/0.002545, allocations: 2.141 MB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001133/0.003678, allocations: 0.7399 MB / 327.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.003789, allocations: 7.938 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.003912, allocations: 35.64 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.004141, allocations: 87.27 kB / 327.6 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.004425, allocations: 123.5 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002587/0.004684, allocations: 302.5 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.004809, allocations: 52.41 kB / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.004938, allocations: 163.5 kB / 328.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.00504, allocations: 87.75 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.005066, allocations: 20 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.175e-05/0.005087, allocations: 20 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.298e-05/0.00512, allocations: 51.77 kB / 328.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.917e-05/0.00518, allocations: 91.75 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.00542, allocations: 267.1 kB / 328.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.005422, allocations: 4 kB / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.005423, allocations: 0 / 328.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.005428, allocations: 0 / 328.7 MB, free: 11.76 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0005225/0.00595, allocations: 453.6 kB / 329.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.005987, allocations: 12.03 kB / 329.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.05e-05/0.006028, allocations: 54.73 kB / 329.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.739e-05/0.006065, allocations: 28.75 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.006293, allocations: 201.3 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.00631, allocations: 16.88 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.006342, allocations: 24.38 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.006612, allocations: 224.1 kB / 329.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.00663, allocations: 16.08 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.006645, allocations: 8.125 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.006651, allocations: 8 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.006844, allocations: 143.8 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008299/0.007674, allocations: 0.9506 MB / 330.8 MB, free: 9.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.007933, allocations: 202.4 kB / 331 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.85e-05/0.008011, allocations: 71.42 kB / 331.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.008027, allocations: 0 / 331.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.008048, allocations: 38.56 kB / 331.1 MB, free: 9.121 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 8.71e-07/0.008049, allocations: 3.938 kB / 331.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003315/0.008381, allocations: 197.9 kB / 331.3 MB, free: 8.918 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.008427, allocations: 136.5 kB / 331.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.008547, allocations: 198.9 kB / 331.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.00856, allocations: 25.7 kB / 331.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/0.008632, allocations: 180.2 kB / 331.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.217e-05/0.008664, allocations: 63.44 kB / 331.9 MB, free: 8.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.835e-05/0.008713, allocations: 49.7 kB / 332 MB, free: 8.215 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.008788, allocations: 330.8 kB / 332.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.106e-05/0.008879, allocations: 63.91 kB / 332.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.009009, allocations: 161.6 kB / 332.5 MB, free: 7.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.009222, allocations: 229.5 kB / 332.7 MB, free: 7.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.009225, allocations: 4 kB / 332.8 MB, free: 7.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002969/0.009521, allocations: 261.5 kB / 333 MB, free: 7.074 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.009534, allocations: 8 kB / 333 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.00954, allocations: 0 / 333 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.009555, allocations: 15.92 kB / 333 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.009702, allocations: 67.91 kB / 333.1 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.00971, allocations: 7.984 kB / 333.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.622e-05/0.009786, allocations: 35.75 kB / 333.1 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.009798, allocations: 8 kB / 333.1 MB, free: 6.934 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * 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 8.087e-05/0.009879, allocations: 137.8 kB / 333.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.534e-05/0.009924, allocations: 23.92 kB / 333.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.009957, allocations: 29.02 kB / 333.3 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.00996, allocations: 3.938 kB / 333.3 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.009965, allocations: 4 kB / 333.3 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.009969, allocations: 256 / 333.3 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.01024, allocations: 220.6 kB / 333.6 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.01024, allocations: 8 kB / 333.6 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.01038, allocations: 51.97 kB / 333.6 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.01038, allocations: 3.984 kB / 333.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.01039, allocations: 4 kB / 333.6 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.0104, allocations: 7.875 kB / 333.6 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.0104, allocations: 4 kB / 333.6 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.0108, allocations: 0.5216 MB / 334.2 MB, free: 5.859 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.074e-05/0.01082, allocations: 19.86 kB / 334.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.01083, allocations: 3.938 kB / 334.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.01095, allocations: 8 kB / 334.2 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.01098, allocations: 19.91 kB / 334.2 MB, free: 5.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.01099, allocations: 8 kB / 334.2 MB, free: 5.801 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.007e-05/0.01106, allocations: 140.2 kB / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01106, allocations: 0 / 334.4 MB, free: 5.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002834/0.01135, allocations: 67.83 kB / 334.4 MB, free: 5.598 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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): 16 * 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.0004846/0.01183, allocations: 1.073 MB / 335.5 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.01205, allocations: 144.4 kB / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01205, allocations: 0 / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.01226, allocations: 68.03 kB / 335.7 MB, free: 4.289 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.01267, allocations: 55.98 kB / 335.8 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.01478, allocations: 2.908 MB / 338.7 MB, free: 1.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.795e-05/0.01488, allocations: 142.1 kB / 338.8 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.453e-05/0.01494, allocations: 26.27 kB / 338.8 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.524e-05/0.01502, allocations: 68.47 kB / 338.9 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.01502, allocations: 4 kB / 338.9 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01703/0.03204, allocations: 5.556 MB / 344.5 MB, free: 11.49 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.439/6.471, allocations: 3.125 kB / 344.5 MB, free: 11.49 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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: 8.687163962982595]