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.001788/0.001788, allocations: 122 kB / 18.45 MB, free: 4.59 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.00221/0.00221, allocations: 206.5 kB / 21.4 MB, free: 1.645 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.442/1.442, allocations: 227.5 MB / 251.7 MB, free: 36 kB / 190.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.001823/0.001823, allocations: 63.89 kB / 365 MB, free: 264 kB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09263, allocations: 50.56 MB / 415.6 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003516/0.09618, allocations: 2.277 MB / 417.9 MB, free: 11.37 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001457/0.09767, allocations: 0.7595 MB / 418.6 MB, free: 10.6 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.09786, allocations: 4 kB / 418.6 MB, free: 10.6 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001424/0.09801, allocations: 35.59 kB / 418.7 MB, free: 10.56 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002547/0.09828, allocations: 87.3 kB / 418.8 MB, free: 10.48 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.09862, allocations: 111.8 kB / 418.9 MB, free: 10.37 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003399/0.09897, allocations: 294.6 kB / 419.1 MB, free: 10.08 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.09914, allocations: 64.38 kB / 419.2 MB, free: 10.01 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.09928, allocations: 107.6 kB / 419.3 MB, free: 9.906 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.09945, allocations: 119.4 kB / 419.4 MB, free: 9.789 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.562e-05/0.09949, allocations: 20 kB / 419.5 MB, free: 9.77 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.5e-05/0.09954, allocations: 20 kB / 419.5 MB, free: 9.75 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.155e-05/0.0996, allocations: 55.83 kB / 419.5 MB, free: 9.695 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.09975, allocations: 123.4 kB / 419.6 MB, free: 9.574 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.1001, allocations: 270.8 kB / 419.9 MB, free: 9.309 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1001, allocations: 0 / 419.9 MB, free: 9.309 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.703e-06/0.1001, allocations: 0 / 419.9 MB, free: 9.309 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 6.312e-06/0.1001, allocations: 0 / 419.9 MB, free: 9.309 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.0008218/0.1009, allocations: 0.5213 MB / 420.4 MB, free: 8.742 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.101, allocations: 12.03 kB / 420.4 MB, free: 8.73 MB / 350.1 MB
Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.454e-05/0.1011, allocations: 58.72 kB / 420.5 MB, free: 8.664 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.928e-05/0.1011, allocations: 32.75 kB / 420.5 MB, free: 8.633 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.1015, allocations: 263.8 kB / 420.8 MB, free: 8.336 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.1016, allocations: 12.81 kB / 420.8 MB, free: 8.324 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.413e-05/0.1016, allocations: 24.38 kB / 420.8 MB, free: 8.301 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.1021, allocations: 238.8 kB / 421.1 MB, free: 8.051 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.1021, allocations: 7.953 kB / 421.1 MB, free: 8.043 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.1021, allocations: 8 kB / 421.1 MB, free: 8.035 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1021, allocations: 8 kB / 421.1 MB, free: 8.027 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003345/0.1025, allocations: 138.3 kB / 421.2 MB, free: 7.895 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.1039, allocations: 1.061 MB / 422.3 MB, free: 6.742 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004523/0.1043, allocations: 210.4 kB / 422.5 MB, free: 6.5 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1045, allocations: 71.44 kB / 422.6 MB, free: 6.418 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1045, allocations: 11.91 kB / 422.6 MB, free: 6.406 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.1046, allocations: 46.5 kB / 422.6 MB, free: 6.352 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=16): time 1.803e-06/0.1046, allocations: 0 / 422.6 MB, free: 6.352 MB / 350.1 MB
Notification: Performance of matching and sorting (n=16): time 0.0005733/0.1052, allocations: 189.4 kB / 422.8 MB, free: 6.16 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.158e-05/0.1052, allocations: 132.5 kB / 422.9 MB, free: 6 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.1054, allocations: 190.8 kB / 423.1 MB, free: 5.801 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.1055, allocations: 29.7 kB / 423.1 MB, free: 5.766 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1056, allocations: 168.1 kB / 423.3 MB, free: 5.598 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.784e-05/0.1057, allocations: 67.44 kB / 423.4 MB, free: 5.531 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.878e-05/0.1057, allocations: 53.66 kB / 423.4 MB, free: 5.473 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001443/0.1059, allocations: 330.8 kB / 423.7 MB, free: 5.141 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.106, allocations: 55.97 kB / 423.8 MB, free: 5.086 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.1063, allocations: 166.1 kB / 424 MB, free: 4.875 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/0.1067, allocations: 237.5 kB / 424.2 MB, free: 4.594 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1067, allocations: 0 / 424.2 MB, free: 4.594 MB / 350.1 MB
Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005009/0.1072, allocations: 257.5 kB / 424.4 MB, free: 4.336 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1072, allocations: 11.92 kB / 424.5 MB, free: 4.324 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1072, allocations: 4 kB / 424.5 MB, free: 4.32 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.1073, allocations: 4 kB / 424.5 MB, free: 4.316 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002707/0.1075, allocations: 71.91 kB / 424.5 MB, free: 4.246 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.1076, allocations: 4 kB / 424.5 MB, free: 4.242 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.1077, allocations: 27.78 kB / 424.6 MB, free: 4.215 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.1078, allocations: 16.23 kB / 424.6 MB, free: 4.199 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.000138/0.1079, allocations: 145.8 kB / 424.7 MB, free: 4.047 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/0.108, allocations: 23.78 kB / 424.8 MB, free: 4.023 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.808e-05/0.1081, allocations: 25.67 kB / 424.8 MB, free: 3.996 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1081, allocations: 4 kB / 424.8 MB, free: 3.992 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.1081, allocations: 4 kB / 424.8 MB, free: 3.988 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1081, allocations: 0 / 424.8 MB, free: 3.988 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004668/0.1086, allocations: 273.4 kB / 425.1 MB, free: 3.672 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1086, allocations: 0 / 425.1 MB, free: 3.672 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002722/0.1089, allocations: 47.97 kB / 425.1 MB, free: 3.625 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-06/0.1089, allocations: 7.938 kB / 425.1 MB, free: 3.617 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.1089, allocations: 11.98 kB / 425.1 MB, free: 3.605 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1089, allocations: 4 kB / 425.1 MB, free: 3.602 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.1089, allocations: 0 / 425.1 MB, free: 3.602 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006197/0.1095, allocations: 0.5244 MB / 425.6 MB, free: 3.059 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.9e-05/0.1096, allocations: 96.95 kB / 425.7 MB, free: 2.945 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.1097, allocations: 8 kB / 425.7 MB, free: 2.938 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.1099, allocations: 4 kB / 425.8 MB, free: 2.934 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/0.1099, allocations: 19.97 kB / 425.8 MB, free: 2.914 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1099, allocations: 4 kB / 425.8 MB, free: 2.91 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001289/0.1101, allocations: 144.8 kB / 425.9 MB, free: 2.77 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.1101, allocations: 0 / 425.9 MB, free: 2.77 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004381/0.1105, allocations: 67.84 kB / 426 MB, free: 2.703 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.0008916/0.1114, allocations: 1.069 MB / 427.1 MB, free: 1.605 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003934/0.1118, allocations: 154.3 kB / 427.2 MB, free: 1.457 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1118, allocations: 0 / 427.2 MB, free: 1.457 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.112, allocations: 67.89 kB / 427.3 MB, free: 1.391 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.1127, allocations: 49.02 kB / 427.3 MB, free: 1.344 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.1166, allocations: 3.068 MB / 430.4 MB, free: 14.09 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.117, allocations: 0.7557 MB / 431.1 MB, free: 13.31 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001035/0.1171, allocations: 26.28 kB / 431.2 MB, free: 13.29 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.1172, allocations: 71.42 kB / 431.2 MB, free: 13.22 MB / 366.1 MB
Notification: Performance of SimCode: time 4.81e-07/0.1172, allocations: 0 / 431.2 MB, free: 13.22 MB / 366.1 MB
Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.1515, allocations: 4.684 MB / 435.9 MB, free: 8.652 MB / 366.1 MB
Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.75, allocations: 4 kB / 435.9 MB, free: 8.648 MB / 366.1 MB
"
[Timeout remaining time 649]
(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: 14.662449578056112]