Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001741/0.001741, allocations: 116 kB / 17.74 MB, free: 5.336 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 186.9 kB / 20.68 MB, free: 2.402 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 246.4 MB, free: 4.199 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"})
"" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 47.92 kB / 357.5 MB, free: 8.809 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.09762, allocations: 49.43 MB / 406.9 MB, free: 7.336 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003672/0.1013, allocations: 2.354 MB / 409.3 MB, free: 4.973 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00101/0.1024, allocations: 0.5804 MB / 409.9 MB, free: 4.387 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1025, allocations: 4 kB / 409.9 MB, free: 4.383 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.1027, allocations: 31.66 kB / 409.9 MB, free: 4.352 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.1029, allocations: 79.33 kB / 410 MB, free: 4.273 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.1031, allocations: 47.88 kB / 410 MB, free: 4.227 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000315/0.1034, allocations: 266.8 kB / 410.3 MB, free: 3.965 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.1036, allocations: 84.56 kB / 410.4 MB, free: 3.883 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.1037, allocations: 103.5 kB / 410.5 MB, free: 3.781 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1039, allocations: 107.5 kB / 410.6 MB, free: 3.676 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.104, allocations: 16 kB / 410.6 MB, free: 3.66 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.125e-05/0.104, allocations: 24 kB / 410.6 MB, free: 3.637 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 4.864e-05/0.1041, allocations: 47.83 kB / 410.6 MB, free: 3.59 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1042, allocations: 115.5 kB / 410.8 MB, free: 3.477 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000306/0.1045, allocations: 242.9 kB / 411 MB, free: 3.238 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1045, allocations: 4 kB / 411 MB, free: 3.234 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.322e-06/0.1045, allocations: 0 / 411 MB, free: 3.234 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.981e-06/0.1045, allocations: 0 / 411 MB, free: 3.234 MB / 334.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 50
 * Number of variables: 50
Notification: Performance of Generate backend data structure: time 0.0007519/0.1053, allocations: 0.5105 MB / 411.5 MB, free: 2.676 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1053, allocations: 12.03 kB / 411.5 MB, free: 2.664 MB / 334.1 MB
Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.1054, allocations: 54.73 kB / 411.6 MB, free: 2.602 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.1055, allocations: 28.75 kB / 411.6 MB, free: 2.574 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.1058, allocations: 241.4 kB / 411.8 MB, free: 2.297 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.1058, allocations: 16.81 kB / 411.9 MB, free: 2.281 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.1059, allocations: 20.38 kB / 411.9 MB, free: 2.262 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003715/0.1062, allocations: 213.9 kB / 412.1 MB, free: 2.039 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.1063, allocations: 11.95 kB / 412.1 MB, free: 2.027 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.1063, allocations: 4 kB / 412.1 MB, free: 2.023 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.1063, allocations: 4 kB / 412.1 MB, free: 2.02 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002663/0.1066, allocations: 129.7 kB / 412.2 MB, free: 1.891 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1076, allocations: 0.7017 MB / 412.9 MB, free: 1.137 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.1079, allocations: 158.4 kB / 413.1 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/0.1081, allocations: 72.83 kB / 413.2 MB, free: 0.8984 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1081, allocations: 0 / 413.2 MB, free: 0.8984 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.1082, allocations: 30.56 kB / 413.2 MB, free: 0.8594 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=20): time 1.202e-06/0.1082, allocations: 0 / 413.2 MB, free: 0.8594 MB / 334.1 MB
Notification: Performance of matching and sorting (n=24): time 0.001671/0.1098, allocations: 0.8919 MB / 414.1 MB, free: 15.88 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.602e-05/0.1099, allocations: 59.34 kB / 414.1 MB, free: 15.81 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.1101, allocations: 171.2 kB / 414.3 MB, free: 15.63 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.1101, allocations: 29.7 kB / 414.3 MB, free: 15.59 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1102, allocations: 148.4 kB / 414.5 MB, free: 15.45 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.482e-05/0.1103, allocations: 91.22 kB / 414.6 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.589e-05/0.1104, allocations: 45.7 kB / 414.6 MB, free: 15.3 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001482/0.1106, allocations: 330.8 kB / 414.9 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1107, allocations: 59.97 kB / 415 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.1109, allocations: 100.2 kB / 415.1 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.1112, allocations: 168.8 kB / 415.3 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1112, allocations: 0 / 415.3 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004782/0.1116, allocations: 262.1 kB / 415.5 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1117, allocations: 4 kB / 415.5 MB, free: 14.35 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.1117, allocations: 3.938 kB / 415.5 MB, free: 14.35 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/0.1119, allocations: 36.83 kB / 415.6 MB, free: 14.31 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.1121, allocations: 47.92 kB / 415.6 MB, free: 14.26 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.1135, allocations: 1.485 MB / 417.1 MB, free: 12.63 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.1136, allocations: 12.02 kB / 417.1 MB, free: 12.62 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.1137, allocations: 16.06 kB / 417.1 MB, free: 12.61 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 5
 * 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 (28):
 * 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: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.1138, allocations: 129.8 kB / 417.2 MB, free: 12.47 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.1139, allocations: 23.86 kB / 417.3 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.443e-05/0.1139, allocations: 25.81 kB / 417.3 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1139, allocations: 4 kB / 417.3 MB, free: 12.41 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1139, allocations: 3.984 kB / 417.3 MB, free: 12.41 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.114, allocations: 0 / 417.3 MB, free: 12.41 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/0.115, allocations: 0.6493 MB / 417.9 MB, free: 11.69 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.115, allocations: 3.938 kB / 418 MB, free: 11.69 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1152, allocations: 47.91 kB / 418 MB, free: 11.64 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001335/0.1154, allocations: 32.84 kB / 418 MB, free: 11.61 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1154, allocations: 12.06 kB / 418 MB, free: 11.59 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.1168, allocations: 1.496 MB / 419.5 MB, free: 9.953 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1168, allocations: 0 / 419.5 MB, free: 9.953 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.1174, allocations: 395.7 kB / 419.9 MB, free: 9.543 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.378e-05/0.1175, allocations: 101.1 kB / 420 MB, free: 9.426 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.1175, allocations: 8 kB / 420 MB, free: 9.418 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.1176, allocations: 4 kB / 420 MB, free: 9.414 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.575e-05/0.1177, allocations: 23.84 kB / 420.1 MB, free: 9.391 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1177, allocations: 12 kB / 420.1 MB, free: 9.379 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001072/0.1178, allocations: 124.8 kB / 420.2 MB, free: 9.258 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.31e-07/0.1178, allocations: 0 / 420.2 MB, free: 9.258 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003336/0.1182, allocations: 60 kB / 420.3 MB, free: 9.199 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel)
 * 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 (21):
 * Single equations (assignments): 20
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(1,3,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0009744/0.1192, allocations: 0.9509 MB / 421.2 MB, free: 8.215 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006097/0.1198, allocations: 282.4 kB / 421.5 MB, free: 7.926 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1198, allocations: 0 / 421.5 MB, free: 7.926 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.1201, allocations: 214.6 kB / 421.7 MB, free: 7.703 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.1206, allocations: 50.47 kB / 421.7 MB, free: 7.656 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.1239, allocations: 2.548 MB / 424.3 MB, free: 4.988 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.1243, allocations: 0.752 MB / 425 MB, free: 4.203 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 8.496e-05/0.1244, allocations: 17.94 kB / 425.1 MB, free: 4.188 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.1245, allocations: 67.41 kB / 425.1 MB, free: 4.125 MB / 350.1 MB
Notification: Performance of SimCode: time 5.71e-07/0.1245, allocations: 0 / 425.1 MB, free: 4.125 MB / 350.1 MB
Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2041/0.3286, allocations: 4.715 MB / 429.8 MB, free: 22.31 MB / 350.1 MB
Notification: Performance of buildModelFMU: Generate platform static: time 9.976/10.3, allocations: 9.016 kB / 429.8 MB, free: 22.31 MB / 350.1 MB
"
[Timeout remaining time 650]
(rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.832835959037766]