Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.000867/0.000867, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0009481/0.0009481, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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 0.8695/0.8695, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.522e-05, allocations: 2.281 kB / 324.5 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.002625/0.002651, allocations: 2.15 MB / 326.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.003716, allocations: 0.7206 MB / 327.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.003832, allocations: 11.94 kB / 327.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.003954, allocations: 35.59 kB / 327.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.004194, allocations: 91.2 kB / 327.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.004456, allocations: 111.6 kB / 327.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.004709, allocations: 310.4 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.004842, allocations: 44.56 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.004978, allocations: 163.6 kB / 328.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.005107, allocations: 87.7 kB / 328.2 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.913e-05/0.005136, allocations: 24 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.301e-05/0.005159, allocations: 20 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.612e-05/0.005195, allocations: 51.81 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.334e-05/0.005259, allocations: 87.77 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.005488, allocations: 267.1 kB / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.005491, allocations: 0 / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.005493, allocations: 0 / 328.7 MB, free: 11.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.005497, allocations: 0 / 328.7 MB, free: 11.58 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.0005739/0.006071, allocations: 465.5 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.006116, allocations: 15.98 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.006161, allocations: 58.72 kB / 329.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.109e-05/0.006202, allocations: 28.75 kB / 329.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.006479, allocations: 189.3 kB / 329.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.006499, allocations: 16.88 kB / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.006532, allocations: 24.38 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005391/0.007071, allocations: 232 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.007088, allocations: 4.141 kB / 329.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.007107, allocations: 20.12 kB / 329.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.007114, allocations: 4 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.007336, allocations: 151.2 kB / 329.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00089/0.008226, allocations: 0.9467 MB / 330.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.008508, allocations: 206.4 kB / 331 MB, free: 9.055 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.423e-05/0.008592, allocations: 71.48 kB / 331.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.008611, allocations: 0 / 331.1 MB, free: 8.973 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.008637, allocations: 46.44 kB / 331.1 MB, free: 8.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.283e-06/0.008638, allocations: 0 / 331.1 MB, free: 8.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003808/0.009019, allocations: 197.4 kB / 331.3 MB, free: 8.719 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.009069, allocations: 132.5 kB / 331.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.009202, allocations: 198.9 kB / 331.6 MB, free: 8.352 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.009216, allocations: 29.7 kB / 331.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.009295, allocations: 172.2 kB / 331.8 MB, free: 8.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.009332, allocations: 67.42 kB / 331.9 MB, free: 8.074 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.009386, allocations: 53.7 kB / 331.9 MB, free: 8.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.00947, allocations: 330.8 kB / 332.3 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.044e-05/0.009561, allocations: 51.97 kB / 332.3 MB, free: 7.633 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.009689, allocations: 169.6 kB / 332.5 MB, free: 7.418 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.009915, allocations: 225.5 kB / 332.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.009918, allocations: 0 / 332.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002805/0.0102, allocations: 265.3 kB / 333 MB, free: 6.883 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.01021, allocations: 8 kB / 333 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.01022, allocations: 4 kB / 333 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.01024, allocations: 7.938 kB / 333 MB, free: 6.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.0104, allocations: 71.84 kB / 333 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.01041, allocations: 4 kB / 333.1 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.993e-05/0.01049, allocations: 32.19 kB / 333.1 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.0105, allocations: 12.75 kB / 333.1 MB, free: 6.746 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.743e-05/0.01059, allocations: 137.8 kB / 333.2 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/0.01064, allocations: 23.86 kB / 333.3 MB, free: 6.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.699e-05/0.01068, allocations: 21.02 kB / 333.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.01068, allocations: 3.938 kB / 333.3 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01069, allocations: 4 kB / 333.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.01069, allocations: 0 / 333.3 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003536/0.01104, allocations: 228.6 kB / 333.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01105, allocations: 4 kB / 333.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.01122, allocations: 59.83 kB / 333.6 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01122, allocations: 4 kB / 333.6 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.01123, allocations: 8 kB / 333.6 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.01124, allocations: 3.938 kB / 333.6 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.01124, allocations: 4 kB / 333.6 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.01164, allocations: 0.5213 MB / 334.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.919e-05/0.01167, allocations: 23.86 kB / 334.1 MB, free: 5.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.0117, allocations: 7.938 kB / 334.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.01182, allocations: 11.98 kB / 334.1 MB, free: 5.625 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.01186, allocations: 11.98 kB / 334.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.01187, allocations: 8 kB / 334.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.093e-05/0.01195, allocations: 140.2 kB / 334.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01195, allocations: 0 / 334.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003023/0.01226, allocations: 59.89 kB / 334.4 MB, free: 5.406 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.0006033/0.01286, allocations: 1.068 MB / 335.4 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002499/0.01311, allocations: 148.4 kB / 335.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01311, allocations: 0 / 335.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.666e-05/0.0132, allocations: 71.84 kB / 335.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.01368, allocations: 52.02 kB / 335.7 MB, free: 4.043 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002756/0.01643, allocations: 2.904 MB / 338.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.01654, allocations: 142.1 kB / 338.7 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.258e-05/0.01662, allocations: 26.28 kB / 338.8 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.645e-05/0.01671, allocations: 68.47 kB / 338.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01671, allocations: 0 / 338.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.03632, allocations: 5.559 MB / 344.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.853/6.889, allocations: 7.797 kB / 344.4 MB, free: 11.27 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CompareBrakingTorque.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 9.14333141501993]