Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001347/0.001347, allocations: 106 kB / 21.18 MB, free: 0.707 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.001642/0.001642, allocations: 185.2 kB / 24.47 MB, free: 4.074 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.541/1.541, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2")
translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 57.61 kB / 347.7 MB, free: 9.566 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2889, allocations: 49.16 MB / 396.8 MB, free: 9.746 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01842/0.3073, allocations: 15.16 MB / 412 MB, free: 15.01 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01433/0.3216, allocations: 4.872 MB / 416.8 MB, free: 11.71 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.004733/0.3264, allocations: 108.2 kB / 417 MB, free: 11.68 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.007535/0.3339, allocations: 3.226 MB / 420.2 MB, free: 9.512 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.01004/0.3439, allocations: 2.649 MB / 422.8 MB, free: 7.629 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.3472, allocations: 0.993 MB / 423.8 MB, free: 6.973 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0125/0.3597, allocations: 6.652 MB / 430.5 MB, free: 1.855 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.005948/0.3657, allocations: 3.226 MB / 433.7 MB, free: 14.56 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.005464/0.3711, allocations: 2.278 MB / 436 MB, free: 12.28 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.006836/0.378, allocations: 3.54 MB / 439.5 MB, free: 8.727 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.002379/0.3803, allocations: 488 kB / 440 MB, free: 8.25 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.004539/0.3849, allocations: 1.533 MB / 441.5 MB, free: 6.715 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.00441/0.3893, allocations: 2.956 MB / 444.5 MB, free: 3.75 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.006199/0.3955, allocations: 3.258 MB / 447.7 MB, free: 484 kB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01627/0.4118, allocations: 10.48 MB / 458.2 MB, free: 5.953 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.433e-06/0.4118, allocations: 0 / 458.2 MB, free: 5.953 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.733e-06/0.4118, allocations: 0 / 458.2 MB, free: 5.953 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 0.0004097/0.4122, allocations: 0 / 458.2 MB, free: 5.953 MB / 366.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 2242
 * Number of variables: 2242
Notification: Performance of Generate backend data structure: time 0.02152/0.4337, allocations: 7.415 MB / 465.6 MB, free: 14.46 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.4337, allocations: 11.98 kB / 465.6 MB, free: 14.45 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0157/0.4494, allocations: 3.978 MB / 469.6 MB, free: 10.46 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.4601, allocations: 4.204 MB / 473.8 MB, free: 6.207 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/0.4604, allocations: 320.4 kB / 474.1 MB, free: 5.891 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/0.4625, allocations: 431.6 kB / 474.6 MB, free: 5.469 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0319/0.4944, allocations: 15.71 MB / 490.3 MB, free: 4.824 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.000182/0.4946, allocations: 59.53 kB / 490.3 MB, free: 4.766 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007435/0.4953, allocations: 207.8 kB / 490.5 MB, free: 4.562 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005236/0.5006, allocations: 3.219 MB / 493.8 MB, free: 1.336 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03074/0.5313, allocations: 14.13 MB / 0.496 GB, free: 3.176 MB / 414.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08918/0.6205, allocations: 57.4 MB / 0.552 GB, free: 8.203 MB / 478.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01421/0.6347, allocations: 5.366 MB / 0.5573 GB, free: 2.809 MB / 478.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.2391/0.8738, allocations: 3.336 MB / 0.5605 GB, free: 143.2 MB / 478.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02206/0.8959, allocations: 12.64 MB / 0.5729 GB, free: 139.3 MB / 478.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.8959, allocations: 69.94 kB / 0.5729 GB, free: 139.3 MB / 478.1 MB
Notification: Performance of pre-optimization done (n=289): time 6.141e-06/0.8959, allocations: 1.781 kB / 0.5729 GB, free: 139.3 MB / 478.1 MB
Notification: Performance of matching and sorting (n=339): time 0.1283/1.024, allocations: 42.56 MB / 0.6145 GB, free: 111.5 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/1.024, allocations: 217.9 kB / 0.6147 GB, free: 111.2 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006154/1.03, allocations: 5.514 MB / 0.6201 GB, free: 105.9 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0008705/1.031, allocations: 73.7 kB / 0.6202 GB, free: 105.8 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.033, allocations: 4.526 MB / 0.6246 GB, free: 101.5 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.001443/1.035, allocations: 1.323 MB / 0.6259 GB, free: 100.2 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.00224/1.037, allocations: 1.861 MB / 0.6277 GB, free: 98.33 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 3.985e-05/1.037, allocations: 305.1 kB / 0.628 GB, free: 98.03 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.005479/1.043, allocations: 4.808 MB / 0.6327 GB, free: 93.21 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.007818/1.05, allocations: 9.804 MB / 0.6423 GB, free: 80.96 MB / 478.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01468/1.065, allocations: 15.57 MB / 0.6575 GB, free: 62.92 MB / 478.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001368/1.065, allocations: 52 kB / 0.6575 GB, free: 62.87 MB / 478.1 MB
Notification: Performance of matching and sorting (n=1189) (initialization): time 0.0381/1.103, allocations: 19.56 MB / 0.6766 GB, free: 43.27 MB / 478.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.103, allocations: 81 kB / 0.6767 GB, free: 43.19 MB / 478.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.103, allocations: 172 kB / 0.6769 GB, free: 43.02 MB / 478.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.01965/1.123, allocations: 5.929 MB / 0.6826 GB, free: 37.08 MB / 478.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009301/1.132, allocations: 2.117 MB / 0.6847 GB, free: 34.96 MB / 478.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02978/1.162, allocations: 25.94 MB / 0.71 GB, free: 8.777 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007042/1.169, allocations: 0.554 MB / 0.7106 GB, free: 8.223 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001272/1.171, allocations: 0.5185 MB / 0.7111 GB, free: 7.707 MB / 478.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 791
 * Number of states: 0 ()
 * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (1098):
 * Single equations (assignments): 1090
 * Array equations: 6
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(2,42,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.004324/1.175, allocations: 3.091 MB / 0.7141 GB, free: 4.602 MB / 478.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009915/1.176, allocations: 0.5161 MB / 0.7146 GB, free: 4.082 MB / 478.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03119/1.207, allocations: 12.91 MB / 0.7272 GB, free: 7.105 MB / 494.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/1.207, allocations: 58.33 kB / 0.7273 GB, free: 7.051 MB / 494.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-05/1.207, allocations: 8 kB / 0.7273 GB, free: 7.043 MB / 494.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.2e-05/1.207, allocations: 15.94 kB / 0.7273 GB, free: 7.027 MB / 494.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2762/1.483, allocations: 24.45 MB / 0.7512 GB, free: 155.7 MB / 0.4981 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.154e-05/1.484, allocations: 4.281 kB / 0.7512 GB, free: 155.7 MB / 0.4981 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003051/1.487, allocations: 0.5753 MB / 0.7517 GB, free: 155.7 MB / 0.4981 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.01836/1.505, allocations: 4.968 MB / 0.7566 GB, free: 155.6 MB / 0.4981 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001009/1.506, allocations: 61.52 kB / 0.7567 GB, free: 155.6 MB / 0.4981 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02544/1.531, allocations: 21.14 MB / 0.7773 GB, free: 145.5 MB / 0.4981 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.531, allocations: 19.72 kB / 0.7773 GB, free: 145.5 MB / 0.4981 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03158/1.563, allocations: 17.46 MB / 0.7944 GB, free: 136.8 MB / 0.4981 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.003407/1.566, allocations: 1.202 MB / 0.7955 GB, free: 136.2 MB / 0.4981 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001245/1.568, allocations: 52 kB / 0.7956 GB, free: 136.1 MB / 0.4981 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003205/1.571, allocations: 263.5 kB / 0.7958 GB, free: 135.9 MB / 0.4981 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000827/1.572, allocations: 201.5 kB / 0.796 GB, free: 135.7 MB / 0.4981 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/1.572, allocations: 83.28 kB / 0.7961 GB, free: 135.6 MB / 0.4981 GB
Notification: Performance of sorting global known variables: time 0.00584/1.578, allocations: 3.426 MB / 0.7995 GB, free: 132.2 MB / 0.4981 GB
Notification: Performance of sort global known variables: time 8.1e-08/1.578, allocations: 0 / 0.7995 GB, free: 132.2 MB / 0.4981 GB
Notification: Performance of remove unused functions: time 0.01122/1.589, allocations: 1.758 MB / 0.8012 GB, free: 130.5 MB / 0.4981 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 23
 * Number of states: 2 (j1.phi,j1.w)
 * 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 (254):
 * Single equations (assignments): 246
 * Array equations: 6
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 1
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 0 systems
 * Non-linear Jacobian (size): 1 system
   {1}
 * Without analytic Jacobian (size): 0 systems
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 1 system
   {(2,38,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.001204/1.59, allocations: 215 kB / 0.8014 GB, free: 130.3 MB / 0.4981 GB
Notification: Performance of simCode: created initialization part: time 0.01567/1.606, allocations: 10.49 MB / 0.8116 GB, free: 119.8 MB / 0.4981 GB
Notification: Performance of simCode: created event and clocks part: time 2.033e-05/1.606, allocations: 3.969 kB / 0.8116 GB, free: 119.8 MB / 0.4981 GB
Notification: Performance of simCode: created simulation system equations: time 0.004994/1.611, allocations: 3.784 MB / 0.8153 GB, free: 116.1 MB / 0.4981 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/1.615, allocations: 0.612 MB / 0.8159 GB, free: 115.5 MB / 0.4981 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/1.638, allocations: 16.41 MB / 0.8319 GB, free: 99.06 MB / 0.4981 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005277/1.644, allocations: 4.626 MB / 0.8365 GB, free: 94.41 MB / 0.4981 GB
Notification: Performance of simCode: alias equations: time 0.00598/1.65, allocations: 2.97 MB / 0.8394 GB, free: 91.5 MB / 0.4981 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001502/1.651, allocations: 355.4 kB / 0.8397 GB, free: 91.16 MB / 0.4981 GB
Notification: Performance of SimCode: time 1.542e-06/1.651, allocations: 0 / 0.8397 GB, free: 91.16 MB / 0.4981 GB
Notification: Performance of Templates: time 0.1169/1.768, allocations: 80.47 MB / 0.9183 GB, free: 10.61 MB / 0.4981 GB
"
[Timeout remaining time 658]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.463239177130163]