Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001659/0.001659, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002176/0.002176, allocations: 211.8 kB / 24.54 MB, free: 4.02 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.512/1.512, allocations: 230.3 MB / 258 MB, free: 8.242 MB / 206.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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 64.12 kB / 378.8 MB, free: 2.793 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 53.36 MB / 432.1 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01703/0.3159, allocations: 15.07 MB / 447.2 MB, free: 7.953 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.012/0.3279, allocations: 4.873 MB / 452.1 MB, free: 3.066 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003381/0.3313, allocations: 107.5 kB / 452.2 MB, free: 2.961 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.007128/0.3384, allocations: 3.219 MB / 455.4 MB, free: 15.73 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.008183/0.3466, allocations: 2.603 MB / 458 MB, free: 13.12 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.3491, allocations: 0.9905 MB / 459 MB, free: 12.13 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01141/0.3605, allocations: 7.053 MB / 466 MB, free: 5.066 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.005454/0.366, allocations: 3.206 MB / 469.2 MB, free: 1.797 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.004321/0.3703, allocations: 2.258 MB / 471.5 MB, free: 15.53 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.005839/0.3761, allocations: 3.509 MB / 475 MB, free: 12.01 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001836/0.378, allocations: 484 kB / 475.5 MB, free: 11.54 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.003983/0.3819, allocations: 1.545 MB / 477 MB, free: 9.992 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.004339/0.3863, allocations: 2.914 MB / 479.9 MB, free: 7.07 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.00612/0.3924, allocations: 3.215 MB / 483.2 MB, free: 3.836 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01542/0.4078, allocations: 10.4 MB / 493.6 MB, free: 9.395 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.4078, allocations: 3.984 kB / 493.6 MB, free: 9.391 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.613e-06/0.4078, allocations: 4 kB / 493.6 MB, free: 9.387 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 0.0004004/0.4082, allocations: 0 / 493.6 MB, free: 9.387 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: 2242
 * Number of variables: 2242
Notification: Performance of Generate backend data structure: time 0.01986/0.4281, allocations: 7.349 MB / 0.4892 GB, free: 1.961 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.4281, allocations: 12.03 kB / 0.4892 GB, free: 1.949 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01795/0.4461, allocations: 3.974 MB / 0.4931 GB, free: 13.96 MB / 414.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.4573, allocations: 4.044 MB / 0.497 GB, free: 9.867 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.4577, allocations: 320.4 kB / 0.4973 GB, free: 9.551 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/0.4598, allocations: 439.6 kB / 0.4977 GB, free: 9.121 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.03662/0.4964, allocations: 15.72 MB / 0.5131 GB, free: 8.473 MB / 430.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0004467/0.4969, allocations: 55.56 kB / 0.5131 GB, free: 8.418 MB / 430.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002893/0.4998, allocations: 203.8 kB / 0.5133 GB, free: 8.219 MB / 430.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006424/0.5062, allocations: 3.216 MB / 0.5165 GB, free: 5 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03267/0.5388, allocations: 14.13 MB / 0.5303 GB, free: 6.848 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3529/0.8917, allocations: 57.4 MB / 0.5863 GB, free: 53.83 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01227/0.904, allocations: 5.358 MB / 0.5916 GB, free: 49.24 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.003948/0.9079, allocations: 3.34 MB / 0.5948 GB, free: 45.89 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.01742/0.9253, allocations: 12.65 MB / 0.6072 GB, free: 33.48 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.408e-05/0.9254, allocations: 64.5 kB / 0.6072 GB, free: 33.41 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=289): time 5.42e-06/0.9254, allocations: 0 / 0.6072 GB, free: 33.41 MB / 446.1 MB
Notification: Performance of matching and sorting (n=339): time 0.1487/1.074, allocations: 42.49 MB / 0.6487 GB, free: 7.242 MB / 462.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/1.074, allocations: 221.9 kB / 0.6489 GB, free: 6.98 MB / 462.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009808/1.084, allocations: 5.482 MB / 0.6543 GB, free: 1.625 MB / 462.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0009193/1.085, allocations: 73.7 kB / 0.6544 GB, free: 1.547 MB / 462.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.003627/1.089, allocations: 4.522 MB / 0.6588 GB, free: 13.19 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.002051/1.091, allocations: 1.322 MB / 0.6601 GB, free: 11.86 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.003107/1.094, allocations: 1.865 MB / 0.6619 GB, free: 9.977 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001285/1.094, allocations: 305.1 kB / 0.6622 GB, free: 9.676 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.007767/1.102, allocations: 4.808 MB / 0.6669 GB, free: 4.859 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.01206/1.114, allocations: 9.798 MB / 0.6765 GB, free: 8.613 MB / 494.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0214/1.135, allocations: 15.58 MB / 0.6917 GB, free: 6.57 MB / 0.4981 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/1.135, allocations: 52 kB / 0.6917 GB, free: 6.52 MB / 0.4981 GB
Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04975/1.185, allocations: 19.55 MB / 0.7108 GB, free: 2.922 MB / 0.5137 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0002257/1.185, allocations: 76 kB / 0.7109 GB, free: 2.848 MB / 0.5137 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003333/1.186, allocations: 180.2 kB / 0.7111 GB, free: 2.672 MB / 0.5137 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.02605/1.212, allocations: 5.945 MB / 0.7169 GB, free: 12.71 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008149/1.22, allocations: 2.109 MB / 0.7189 GB, free: 10.6 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04092/1.261, allocations: 25.94 MB / 0.7443 GB, free: 420 kB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2768/1.537, allocations: 0.5519 MB / 0.7448 GB, free: 186.7 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002573/1.54, allocations: 0.5093 MB / 0.7453 GB, free: 186.7 MB / 0.545 GB
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.007939/1.548, allocations: 3.105 MB / 0.7483 GB, free: 186.6 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.549, allocations: 0.517 MB / 0.7488 GB, free: 186.6 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03772/1.587, allocations: 12.91 MB / 0.7614 GB, free: 183.1 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000151/1.587, allocations: 58.02 kB / 0.7615 GB, free: 183.1 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.652e-05/1.587, allocations: 7.781 kB / 0.7615 GB, free: 183.1 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-05/1.587, allocations: 15.09 kB / 0.7615 GB, free: 183.1 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08865/1.676, allocations: 24.45 MB / 0.7854 GB, free: 168.7 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.405e-05/1.676, allocations: 4 kB / 0.7854 GB, free: 168.7 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005814/1.682, allocations: 0.5791 MB / 0.7859 GB, free: 168.2 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.03746/1.719, allocations: 4.97 MB / 0.7908 GB, free: 163.2 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00102/1.72, allocations: 52 kB / 0.7909 GB, free: 163.1 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03671/1.757, allocations: 21.15 MB / 0.8115 GB, free: 141.9 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.757, allocations: 8 kB / 0.8115 GB, free: 141.9 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03362/1.791, allocations: 17.45 MB / 0.8286 GB, free: 124.6 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.792, allocations: 495.6 kB / 0.829 GB, free: 124.2 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/1.793, allocations: 55.98 kB / 0.8291 GB, free: 124.1 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003415/1.797, allocations: 259.6 kB / 0.8293 GB, free: 123.9 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007406/1.798, allocations: 209 kB / 0.8295 GB, free: 123.7 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002764/1.798, allocations: 87.73 kB / 0.8296 GB, free: 123.6 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.004397/1.802, allocations: 3.398 MB / 0.8329 GB, free: 120.2 MB / 0.545 GB
Notification: Performance of sort global known variables: time 1.7e-07/1.802, allocations: 0 / 0.8329 GB, free: 120.2 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.009289/1.811, allocations: 1.727 MB / 0.8346 GB, free: 118.5 MB / 0.545 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.0007922/1.812, allocations: 209.1 kB / 0.8348 GB, free: 118.3 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.01484/1.827, allocations: 10.5 MB / 0.8451 GB, free: 107.9 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.827, allocations: 4 kB / 0.8451 GB, free: 107.9 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.005338/1.832, allocations: 3.787 MB / 0.8488 GB, free: 104.1 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/1.838, allocations: 0.6126 MB / 0.8494 GB, free: 103.5 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02369/1.862, allocations: 16.36 MB / 0.8653 GB, free: 87.05 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004532/1.866, allocations: 4.619 MB / 0.8699 GB, free: 82.4 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.005712/1.872, allocations: 2.959 MB / 0.8727 GB, free: 79.43 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001375/1.873, allocations: 354.2 kB / 0.8731 GB, free: 79.09 MB / 0.545 GB
Notification: Performance of SimCode: time 1.212e-06/1.873, allocations: 0 / 0.8731 GB, free: 79.09 MB / 0.545 GB
Notification: Performance of Templates: time 0.3408/2.214, allocations: 80.24 MB / 0.9514 GB, free: 179.9 MB / 0.545 GB
"
[Timeout remaining time 658]
make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.75599261559546]