Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.001311/0.001311, allocations: 104.6 kB / 21.18 MB, free: 0.6992 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.001679/0.001679, allocations: 181.2 kB / 24.46 MB, free: 4.059 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.481/1.481, 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar")
translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [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.001755/0.001755, allocations: 58.89 kB / 347.7 MB, free: 9.574 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3292, allocations: 49.15 MB / 396.8 MB, free: 9.52 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02428/0.3534, allocations: 18.69 MB / 415.5 MB, free: 12.26 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01775/0.3712, allocations: 6.203 MB / 421.7 MB, free: 7.605 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.006242/0.3774, allocations: 170.7 kB / 421.9 MB, free: 7.551 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.01377/0.3912, allocations: 6.374 MB / 428.2 MB, free: 3.324 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.01189/0.4031, allocations: 2.941 MB / 431.2 MB, free: 0.9766 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.006562/0.4096, allocations: 2.312 MB / 433.5 MB, free: 14.66 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01604/0.4257, allocations: 8.846 MB / 442.3 MB, free: 5.793 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.009609/0.4353, allocations: 5.831 MB / 448.2 MB, free: 15.86 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.008394/0.4437, allocations: 3.288 MB / 451.5 MB, free: 12.57 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.009466/0.4531, allocations: 4.487 MB / 455.9 MB, free: 8.066 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.003234/0.4564, allocations: 0.7188 MB / 456.7 MB, free: 7.348 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.006348/0.4627, allocations: 1.955 MB / 458.6 MB, free: 5.391 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.007547/0.4703, allocations: 3.923 MB / 462.5 MB, free: 1.457 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.008703/0.479, allocations: 4.158 MB / 466.7 MB, free: 13.27 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.02084/0.4998, allocations: 13.29 MB / 480 MB, free: 15.94 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4998, allocations: 0 / 480 MB, free: 15.94 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.445e-06/0.4998, allocations: 4 kB / 480 MB, free: 15.94 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 0.0004876/0.5003, allocations: 0 / 480 MB, free: 15.94 MB / 398.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 2349
 * Number of variables: 2349
Notification: Performance of Generate backend data structure: time 0.03016/0.5305, allocations: 9.089 MB / 489.1 MB, free: 6.77 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.107e-05/0.5305, allocations: 11.98 kB / 489.1 MB, free: 6.758 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04349/0.574, allocations: 4.896 MB / 494 MB, free: 1.852 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01941/0.5934, allocations: 6.628 MB / 0.4889 GB, free: 11.14 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000522/0.594, allocations: 435.7 kB / 0.4893 GB, free: 10.72 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.003273/0.5972, allocations: 0.5896 MB / 0.4899 GB, free: 10.13 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.04429/0.6415, allocations: 17.06 MB / 0.5065 GB, free: 8.117 MB / 430.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0003862/0.6419, allocations: 83.36 kB / 0.5066 GB, free: 8.035 MB / 430.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001797/0.6437, allocations: 271.8 kB / 0.5069 GB, free: 7.77 MB / 430.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005099/0.6488, allocations: 2.654 MB / 0.5095 GB, free: 5.105 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03457/0.6834, allocations: 14.79 MB / 0.5239 GB, free: 6.293 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5592/1.243, allocations: 64.26 MB / 0.5867 GB, free: 102.7 MB / 478.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.02317/1.266, allocations: 8.04 MB / 0.5945 GB, free: 102 MB / 478.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.006222/1.272, allocations: 4.733 MB / 0.5991 GB, free: 100.1 MB / 478.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.02552/1.297, allocations: 18 MB / 0.6167 GB, free: 91.2 MB / 478.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.871e-05/1.298, allocations: 63.84 kB / 0.6168 GB, free: 91.14 MB / 478.1 MB
Notification: Performance of pre-optimization done (n=281): time 6.843e-06/1.298, allocations: 0 / 0.6168 GB, free: 91.14 MB / 478.1 MB
Notification: Performance of matching and sorting (n=374): time 0.2192/1.517, allocations: 74.26 MB / 0.6893 GB, free: 21.29 MB / 478.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/1.517, allocations: 379.9 kB / 0.6897 GB, free: 20.85 MB / 478.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008285/1.525, allocations: 6.434 MB / 0.6959 GB, free: 14.52 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0009619/1.526, allocations: 81.7 kB / 0.696 GB, free: 14.43 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00224/1.528, allocations: 4.937 MB / 0.7008 GB, free: 9.871 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.001585/1.53, allocations: 1.443 MB / 0.7023 GB, free: 8.445 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.002514/1.533, allocations: 1.989 MB / 0.7042 GB, free: 6.445 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 4.603e-05/1.533, allocations: 305.1 kB / 0.7045 GB, free: 6.145 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.006363/1.539, allocations: 5.992 MB / 0.7103 GB, free: 148 kB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.01427/1.553, allocations: 11.02 MB / 0.7211 GB, free: 2.707 MB / 494.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0255/1.579, allocations: 17.97 MB / 0.7386 GB, free: 14.29 MB / 0.5138 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/1.579, allocations: 51.94 kB / 0.7387 GB, free: 14.24 MB / 0.5138 GB
Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05382/1.633, allocations: 23.3 MB / 0.7614 GB, free: 6.887 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0002611/1.633, allocations: 80 kB / 0.7615 GB, free: 6.809 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000361/1.633, allocations: 168 kB / 0.7617 GB, free: 6.645 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.2848/1.918, allocations: 7.432 MB / 0.7689 GB, free: 185.3 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008924/1.927, allocations: 2.187 MB / 0.7711 GB, free: 185.3 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05132/1.978, allocations: 37.81 MB / 0.808 GB, free: 170.2 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01048/1.989, allocations: 0.7453 MB / 0.8087 GB, free: 170.1 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00272/1.992, allocations: 0.5282 MB / 0.8092 GB, free: 170 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 785
 * Number of states: 0 ()
 * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (1091):
 * Single equations (assignments): 1084
 * Array equations: 4
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(5,68,84.0%), (2,18,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,24)}
Notification: Performance of prepare postOptimizeDAE: time 0.008204/2, allocations: 3.43 MB / 0.8126 GB, free: 168.5 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001844/2.002, allocations: 0.6063 MB / 0.8132 GB, free: 168.5 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02939/2.031, allocations: 16.88 MB / 0.8297 GB, free: 153.9 MB / 0.5294 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.409e-05/2.031, allocations: 55.92 kB / 0.8297 GB, free: 153.8 MB / 0.5294 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-05/2.031, allocations: 16 kB / 0.8297 GB, free: 153.8 MB / 0.5294 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.479e-05/2.031, allocations: 15.94 kB / 0.8297 GB, free: 153.8 MB / 0.5294 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05187/2.083, allocations: 31.94 MB / 0.8609 GB, free: 121.6 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.996e-05/2.083, allocations: 6.438 kB / 0.861 GB, free: 121.6 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003092/2.086, allocations: 0.6045 MB / 0.8615 GB, free: 121 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.01796/2.104, allocations: 7.014 MB / 0.8684 GB, free: 114.1 MB / 0.5294 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009506/2.105, allocations: 67.92 kB / 0.8685 GB, free: 114 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04218/2.147, allocations: 36.02 MB / 0.9036 GB, free: 77.92 MB / 0.5294 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.147, allocations: 7.938 kB / 0.9036 GB, free: 77.91 MB / 0.5294 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03915/2.186, allocations: 24.56 MB / 0.9276 GB, free: 53.35 MB / 0.5294 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.004757/2.191, allocations: 1.617 MB / 0.9292 GB, free: 51.73 MB / 0.5294 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002844/2.194, allocations: 63.98 kB / 0.9293 GB, free: 51.67 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005776/2.2, allocations: 443.3 kB / 0.9297 GB, free: 51.24 MB / 0.5294 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00164/2.201, allocations: 270.5 kB / 0.9299 GB, free: 50.97 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007476/2.202, allocations: 92 kB / 0.93 GB, free: 50.88 MB / 0.5294 GB
Notification: Performance of sorting global known variables: time 0.007509/2.21, allocations: 4.08 MB / 0.934 GB, free: 46.81 MB / 0.5294 GB
Notification: Performance of sort global known variables: time 3.4e-07/2.21, allocations: 0 / 0.934 GB, free: 46.81 MB / 0.5294 GB
Notification: Performance of remove unused functions: time 0.01303/2.223, allocations: 2.301 MB / 0.9363 GB, free: 44.52 MB / 0.5294 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 12
 * Number of states: 2 (revolute1.phi,revolute1.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 (243):
 * Single equations (assignments): 236
 * Array equations: 4
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(5,62,84.0%), (2,15,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(2,28)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001665/2.224, allocations: 278.8 kB / 0.9365 GB, free: 44.27 MB / 0.5294 GB
Notification: Performance of simCode: created initialization part: time 0.02038/2.245, allocations: 14.19 MB / 0.9504 GB, free: 30.04 MB / 0.5294 GB
Notification: Performance of simCode: created event and clocks part: time 1.066e-05/2.245, allocations: 4 kB / 0.9504 GB, free: 30.04 MB / 0.5294 GB
Notification: Performance of simCode: created simulation system equations: time 0.009355/2.254, allocations: 6.161 MB / 0.9564 GB, free: 23.84 MB / 0.5294 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007509/2.262, allocations: 0.8822 MB / 0.9573 GB, free: 22.96 MB / 0.5294 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2543/2.516, allocations: 20.4 MB / 0.9772 GB, free: 180 MB / 0.5294 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009964/2.526, allocations: 5.286 MB / 0.9824 GB, free: 179.1 MB / 0.5294 GB
Notification: Performance of simCode: alias equations: time 0.006837/2.533, allocations: 3.023 MB / 0.9853 GB, free: 179 MB / 0.5294 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001835/2.535, allocations: 386.5 kB / 0.9857 GB, free: 179 MB / 0.5294 GB
Notification: Performance of SimCode: time 2.064e-06/2.535, allocations: 0 / 0.9857 GB, free: 179 MB / 0.5294 GB
Notification: Performance of Templates: time 0.1724/2.707, allocations: 113.1 MB / 1.096 GB, free: 79.96 MB / 0.5294 GB
"
[Timeout remaining time 657]
make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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: 10.093649134971201]