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.001549/0.001549, allocations: 121.2 kB / 18.5 MB, free: 4.578 MB / 14.72 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.001663/0.001663, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 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 1.451/1.451, allocations: 230.2 MB / 254.5 MB, free: 15.06 MB / 206.1 MB
"
[Timeout remaining time 178]
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 0.001872/0.001872, allocations: 59.89 kB / 373.4 MB, free: 10.37 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 53.33 MB / 426.7 MB, free: 4.941 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003658/0.108, allocations: 2.294 MB / 429 MB, free: 2.637 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001445/0.1095, allocations: 0.7635 MB / 429.8 MB, free: 1.867 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.1096, allocations: 7.938 kB / 429.8 MB, free: 1.859 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.1097, allocations: 35.66 kB / 429.8 MB, free: 1.824 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002641/0.11, allocations: 87.31 kB / 429.9 MB, free: 1.738 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.1103, allocations: 107.7 kB / 430 MB, free: 1.633 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003755/0.1107, allocations: 302.6 kB / 430.3 MB, free: 1.336 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.1108, allocations: 44.39 kB / 430.3 MB, free: 1.289 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.111, allocations: 111.6 kB / 430.4 MB, free: 1.18 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1111, allocations: 119.5 kB / 430.6 MB, free: 1.062 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.272e-05/0.1112, allocations: 20 kB / 430.6 MB, free: 1.043 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 3.836e-05/0.1112, allocations: 24 kB / 430.6 MB, free: 1.02 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.09e-05/0.1113, allocations: 51.78 kB / 430.7 MB, free: 0.9688 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.1114, allocations: 127.4 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.1117, allocations: 262.8 kB / 431 MB, free: 0.5859 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.1117, allocations: 4 kB / 431 MB, free: 0.582 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.153e-06/0.1117, allocations: 0 / 431 MB, free: 0.582 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 6.051e-06/0.1117, allocations: 3.938 kB / 431 MB, free: 0.5781 MB / 350.1 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.0008315/0.1125, allocations: 0.5221 MB / 431.6 MB, free: 8 kB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 0.1855/0.298, allocations: 11.95 kB / 431.6 MB, free: 11.39 MB / 350.1 MB
Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.2981, allocations: 57.42 kB / 431.6 MB, free: 11.35 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.692e-05/0.2982, allocations: 32.45 kB / 431.7 MB, free: 11.35 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/0.2987, allocations: 249.3 kB / 431.9 MB, free: 11.14 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.2987, allocations: 18.16 kB / 431.9 MB, free: 11.14 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.87e-05/0.2988, allocations: 22.52 kB / 432 MB, free: 11.14 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.2993, allocations: 237.1 kB / 432.2 MB, free: 11.08 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.2993, allocations: 15.06 kB / 432.2 MB, free: 11.07 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.2993, allocations: 6.906 kB / 432.2 MB, free: 11.07 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.2994, allocations: 5.531 kB / 432.2 MB, free: 11.07 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.2997, allocations: 142.8 kB / 432.3 MB, free: 11.07 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.301, allocations: 1.058 MB / 433.4 MB, free: 10.36 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004219/0.3014, allocations: 205.2 kB / 433.6 MB, free: 10.26 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.3015, allocations: 61.48 kB / 433.7 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.3015, allocations: 4.703 kB / 433.7 MB, free: 10.23 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.3016, allocations: 44.36 kB / 433.7 MB, free: 10.19 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=16): time 1.694e-06/0.3016, allocations: 0.625 kB / 433.7 MB, free: 10.19 MB / 350.1 MB
Notification: Performance of matching and sorting (n=16): time 0.00058/0.3021, allocations: 196.8 kB / 433.9 MB, free: 10.15 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.3022, allocations: 135.1 kB / 434 MB, free: 9.992 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.3024, allocations: 192.8 kB / 434.2 MB, free: 9.887 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.3024, allocations: 27.33 kB / 434.3 MB, free: 9.855 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.607e-05/0.3024, allocations: 166.9 kB / 434.4 MB, free: 9.73 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.3025, allocations: 71.83 kB / 434.5 MB, free: 9.688 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.3026, allocations: 53.27 kB / 434.5 MB, free: 9.668 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 6.067e-05/0.3026, allocations: 333.5 kB / 434.9 MB, free: 9.355 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.3027, allocations: 56.67 kB / 434.9 MB, free: 9.352 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/0.3029, allocations: 161.9 kB / 435.1 MB, free: 9.223 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.3032, allocations: 235 kB / 435.3 MB, free: 9.098 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.3032, allocations: 1.062 kB / 435.3 MB, free: 9.098 MB / 350.1 MB
Notification: Performance of matching and sorting (n=32) (initialization): time 0.000449/0.3037, allocations: 256.7 kB / 435.6 MB, free: 9.059 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.3037, allocations: 6.844 kB / 435.6 MB, free: 9.059 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.3037, allocations: 8.281 kB / 435.6 MB, free: 9.055 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.3037, allocations: 4.719 kB / 435.6 MB, free: 9.055 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.304, allocations: 68.02 kB / 435.6 MB, free: 9.055 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.304, allocations: 14.17 kB / 435.7 MB, free: 9.051 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.3041, allocations: 35.78 kB / 435.7 MB, free: 9.031 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3041, allocations: 14.78 kB / 435.7 MB, free: 9.031 MB / 350.1 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 0.0001026/0.3042, allocations: 134.3 kB / 435.8 MB, free: 8.914 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/0.3043, allocations: 17 kB / 435.9 MB, free: 8.906 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.299e-05/0.3044, allocations: 27.67 kB / 435.9 MB, free: 8.895 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3044, allocations: 4.281 kB / 435.9 MB, free: 8.895 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3044, allocations: 1.312 kB / 435.9 MB, free: 8.895 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3044, allocations: 4.172 kB / 435.9 MB, free: 8.895 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004002/0.3048, allocations: 274.9 kB / 436.2 MB, free: 8.699 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3048, allocations: 5.031 kB / 436.2 MB, free: 8.695 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002674/0.3051, allocations: 56.14 kB / 436.2 MB, free: 8.691 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3051, allocations: 2.5 kB / 436.2 MB, free: 8.691 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.3051, allocations: 12.23 kB / 436.2 MB, free: 8.688 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3051, allocations: 1.281 kB / 436.2 MB, free: 8.688 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.103e-06/0.3051, allocations: 1.219 kB / 436.2 MB, free: 8.688 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.3056, allocations: 0.5189 MB / 436.8 MB, free: 8.316 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.3056, allocations: 100.7 kB / 436.9 MB, free: 8.211 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.3057, allocations: 2.375 kB / 436.9 MB, free: 8.211 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.3059, allocations: 10.69 kB / 436.9 MB, free: 8.211 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.3059, allocations: 14.7 kB / 436.9 MB, free: 8.207 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.3059, allocations: 4.719 kB / 436.9 MB, free: 8.207 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001034/0.306, allocations: 153 kB / 437 MB, free: 8.125 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.306, allocations: 1.344 kB / 437 MB, free: 8.125 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004461/0.3065, allocations: 62.06 kB / 437.1 MB, free: 8.113 MB / 350.1 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.0006395/0.3071, allocations: 1.069 MB / 438.2 MB, free: 7.195 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003684/0.3075, allocations: 146.5 kB / 438.3 MB, free: 7.152 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3075, allocations: 0.75 kB / 438.3 MB, free: 7.152 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.3076, allocations: 66.08 kB / 438.4 MB, free: 7.133 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.3083, allocations: 49.95 kB / 438.4 MB, free: 7.121 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.3114, allocations: 3.071 MB / 441.5 MB, free: 4.723 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.3116, allocations: 0.7426 MB / 442.2 MB, free: 4.027 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.000109/0.3117, allocations: 25.08 kB / 442.3 MB, free: 4.023 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 9.158e-05/0.3118, allocations: 71.42 kB / 442.3 MB, free: 3.977 MB / 350.1 MB
Notification: Performance of SimCode: time 8.41e-07/0.3118, allocations: 0 / 442.3 MB, free: 3.977 MB / 350.1 MB
Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.3423, allocations: 4.729 MB / 447.1 MB, free: 3.312 MB / 350.1 MB
Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.463, allocations: 13.44 kB / 447.1 MB, free: 3.305 MB / 350.1 MB
"
[Timeout remaining time 651]
(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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins1/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: 12.036319826031104]