Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.001852/0.001852, allocations: 108.3 kB / 20.43 MB, free: 1.473 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.002118/0.002118, allocations: 182.7 kB / 23.71 MB, free: 4.711 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.435/1.435, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic")
translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 55.91 kB / 370.9 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2532, allocations: 52.18 MB / 423.1 MB, free: 14.69 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01597/0.2692, allocations: 13.58 MB / 436.7 MB, free: 1.051 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01071/0.2799, allocations: 4.905 MB / 441.6 MB, free: 12.13 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002468/0.2824, allocations: 103.5 kB / 441.7 MB, free: 12.03 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.008327/0.2907, allocations: 4.256 MB / 446 MB, free: 7.762 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.00669/0.2974, allocations: 2.21 MB / 448.2 MB, free: 5.543 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002925/0.3003, allocations: 1.111 MB / 449.3 MB, free: 4.43 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.009731/0.3101, allocations: 5.985 MB / 455.3 MB, free: 14.43 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.005171/0.3152, allocations: 3.803 MB / 459.1 MB, free: 10.57 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.003728/0.319, allocations: 2.185 MB / 461.3 MB, free: 8.375 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.004747/0.3237, allocations: 3.089 MB / 464.3 MB, free: 5.277 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001213/0.3249, allocations: 0.4921 MB / 464.8 MB, free: 4.785 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003322/0.3282, allocations: 1.693 MB / 466.5 MB, free: 3.09 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002959/0.3312, allocations: 2.661 MB / 469.2 MB, free: 432 kB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.00339/0.3346, allocations: 2.898 MB / 472.1 MB, free: 13.51 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01155/0.3461, allocations: 9.57 MB / 481.7 MB, free: 3.902 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3461, allocations: 0 / 481.7 MB, free: 3.902 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.493e-06/0.3461, allocations: 0 / 481.7 MB, free: 3.902 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 0.0001992/0.3463, allocations: 0 / 481.7 MB, free: 3.902 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1743
 * Number of variables: 1743
Notification: Performance of Generate backend data structure: time 0.0135/0.3598, allocations: 6.112 MB / 487.8 MB, free: 13.72 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3599, allocations: 12.03 kB / 487.8 MB, free: 13.71 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.372, allocations: 2.571 MB / 490.4 MB, free: 11.13 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.3821, allocations: 3.737 MB / 494.1 MB, free: 7.34 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003136/0.3824, allocations: 304.3 kB / 494.4 MB, free: 7.039 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001508/0.3839, allocations: 447.6 kB / 494.8 MB, free: 6.602 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.02414/0.408, allocations: 12.41 MB / 0.4953 GB, free: 9.453 MB / 414.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001358/0.4082, allocations: 55.62 kB / 0.4954 GB, free: 9.398 MB / 414.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004857/0.4086, allocations: 183.9 kB / 0.4956 GB, free: 9.219 MB / 414.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003324/0.412, allocations: 2.035 MB / 0.4976 GB, free: 7.184 MB / 414.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02274/0.4347, allocations: 10.57 MB / 0.5079 GB, free: 12.6 MB / 430.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2919/0.7266, allocations: 44.06 MB / 0.5509 GB, free: 78.64 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.7386, allocations: 4.24 MB / 0.5551 GB, free: 78.54 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.7407, allocations: 1.895 MB / 0.5569 GB, free: 77.92 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.009682/0.7504, allocations: 6.182 MB / 0.5629 GB, free: 75.33 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.7504, allocations: 49.72 kB / 0.563 GB, free: 75.28 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=179): time 4.639e-06/0.7504, allocations: 0 / 0.563 GB, free: 75.28 MB / 446.1 MB
Notification: Performance of matching and sorting (n=223): time 0.06193/0.8123, allocations: 19.8 MB / 0.5823 GB, free: 59.72 MB / 446.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.112e-05/0.8124, allocations: 201.9 kB / 0.5825 GB, free: 59.48 MB / 446.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004607/0.817, allocations: 4.478 MB / 0.5869 GB, free: 54.98 MB / 446.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0003441/0.8173, allocations: 61.7 kB / 0.5869 GB, free: 54.92 MB / 446.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.8188, allocations: 3.652 MB / 0.5905 GB, free: 51.28 MB / 446.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0006118/0.8194, allocations: 0.8707 MB / 0.5914 GB, free: 50.42 MB / 446.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/0.8207, allocations: 1.361 MB / 0.5927 GB, free: 49.05 MB / 446.1 MB
Notification: Performance of setup shared object (initialization): time 3.695e-05/0.8207, allocations: 302.3 kB / 0.593 GB, free: 48.75 MB / 446.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.002654/0.8234, allocations: 2.363 MB / 0.5953 GB, free: 46.39 MB / 446.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00377/0.8272, allocations: 6.163 MB / 0.6013 GB, free: 38.41 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007284/0.8344, allocations: 9.172 MB / 0.6103 GB, free: 27.44 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.398e-05/0.8345, allocations: 40 kB / 0.6103 GB, free: 27.4 MB / 446.1 MB
Notification: Performance of matching and sorting (n=868) (initialization): time 0.01419/0.8487, allocations: 9.546 MB / 0.6196 GB, free: 17.84 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.792e-05/0.8488, allocations: 63.94 kB / 0.6197 GB, free: 17.78 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.991e-05/0.8489, allocations: 132 kB / 0.6198 GB, free: 17.65 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.003788/0.8526, allocations: 1.366 MB / 0.6211 GB, free: 16.28 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004171/0.8568, allocations: 1.481 MB / 0.6226 GB, free: 14.8 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009826/0.8666, allocations: 8.364 MB / 0.6308 GB, free: 6.328 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004794/0.8714, allocations: 347.7 kB / 0.6311 GB, free: 5.988 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007947/0.8722, allocations: 392 kB / 0.6315 GB, free: 5.605 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 605
 * Number of states: 0 ()
 * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (804):
 * Single equations (assignments): 800
 * Array equations: 3
 * 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,40,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.003737/0.876, allocations: 2.497 MB / 0.6339 GB, free: 3.098 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007575/0.8767, allocations: 417.2 kB / 0.6343 GB, free: 2.688 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007957/0.8847, allocations: 4.112 MB / 0.6383 GB, free: 14.55 MB / 462.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-05/0.8847, allocations: 20 kB / 0.6383 GB, free: 14.54 MB / 462.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/0.8848, allocations: 15.36 kB / 0.6384 GB, free: 14.52 MB / 462.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.149e-05/0.8848, allocations: 11.97 kB / 0.6384 GB, free: 14.51 MB / 462.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02252/0.9073, allocations: 10.08 MB / 0.6482 GB, free: 4.332 MB / 462.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/0.9073, allocations: 8.125 kB / 0.6482 GB, free: 4.324 MB / 462.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.9089, allocations: 323.5 kB / 0.6485 GB, free: 4.008 MB / 462.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.004052/0.913, allocations: 1.144 MB / 0.6496 GB, free: 2.859 MB / 462.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003003/0.9133, allocations: 54.8 kB / 0.6497 GB, free: 2.809 MB / 462.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/0.9246, allocations: 7.046 MB / 0.6566 GB, free: 11.65 MB / 478.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.9246, allocations: 7.938 kB / 0.6566 GB, free: 11.64 MB / 478.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01374/0.9384, allocations: 6.894 MB / 0.6633 GB, free: 4.668 MB / 478.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001709/0.9401, allocations: 405.1 kB / 0.6637 GB, free: 4.27 MB / 478.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001109/0.9412, allocations: 43.94 kB / 0.6637 GB, free: 4.227 MB / 478.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002342/0.9436, allocations: 119.7 kB / 0.6639 GB, free: 4.113 MB / 478.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004958/0.944, allocations: 152.9 kB / 0.664 GB, free: 3.961 MB / 478.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/0.9442, allocations: 60 kB / 0.6641 GB, free: 3.902 MB / 478.1 MB
Notification: Performance of sorting global known variables: time 0.004691/0.9489, allocations: 2.803 MB / 0.6668 GB, free: 1.098 MB / 478.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.9489, allocations: 0 / 0.6668 GB, free: 1.098 MB / 478.1 MB
Notification: Performance of remove unused functions: time 0.005722/0.9546, allocations: 1.219 MB / 0.668 GB, free: 15.88 MB / 494.1 MB
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 (173):
 * Single equations (assignments): 169
 * Array equations: 3
 * 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,30,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0006443/0.9553, allocations: 238.2 kB / 0.6682 GB, free: 15.64 MB / 494.1 MB
Notification: Performance of simCode: created initialization part: time 0.01025/0.9655, allocations: 5.532 MB / 0.6736 GB, free: 10.13 MB / 494.1 MB
Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.9655, allocations: 4.062 kB / 0.6736 GB, free: 10.12 MB / 494.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002838/0.9684, allocations: 1.738 MB / 0.6753 GB, free: 8.375 MB / 494.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003657/0.972, allocations: 0.5369 MB / 0.6758 GB, free: 7.844 MB / 494.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02213/0.9942, allocations: 11.31 MB / 0.6869 GB, free: 12.42 MB / 0.4981 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005057/0.9992, allocations: 3.867 MB / 0.6907 GB, free: 8.516 MB / 0.4981 GB
Notification: Performance of simCode: alias equations: time 0.004965/1.004, allocations: 1.934 MB / 0.6926 GB, free: 6.574 MB / 0.4981 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009365/1.005, allocations: 267.4 kB / 0.6928 GB, free: 6.312 MB / 0.4981 GB
Notification: Performance of SimCode: time 1.393e-06/1.005, allocations: 0 / 0.6928 GB, free: 6.312 MB / 0.4981 GB
Notification: Performance of Templates: time 0.09683/1.102, allocations: 46.97 MB / 0.7387 GB, free: 7.613 MB / 0.545 GB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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: 7.230626181699336]