Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001567/0.001567, allocations: 112 kB / 20.43 MB, free: 1.449 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.001788/0.001788, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.49/1.49, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 47.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.233, allocations: 52.18 MB / 423.1 MB, free: 14.72 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01762/0.2506, allocations: 15.13 MB / 438.2 MB, free: 15.52 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01052/0.2612, allocations: 4.865 MB / 443.1 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002629/0.2638, allocations: 111.4 kB / 443.2 MB, free: 10.53 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.006861/0.2706, allocations: 3.227 MB / 446.4 MB, free: 7.289 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.007852/0.2785, allocations: 2.638 MB / 449.1 MB, free: 4.641 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.2813, allocations: 0.9827 MB / 450.1 MB, free: 3.656 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0109/0.2922, allocations: 6.99 MB / 457.1 MB, free: 12.66 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.005277/0.2975, allocations: 3.214 MB / 460.3 MB, free: 9.383 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.004621/0.3021, allocations: 2.27 MB / 462.5 MB, free: 7.105 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.006236/0.3083, allocations: 3.513 MB / 466.1 MB, free: 3.582 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.001769/0.3101, allocations: 484 kB / 466.5 MB, free: 3.109 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00406/0.3142, allocations: 1.553 MB / 468.1 MB, free: 1.555 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.004963/0.3191, allocations: 2.945 MB / 471 MB, free: 14.6 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.007106/0.3262, allocations: 3.246 MB / 474.3 MB, free: 11.34 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01654/0.3428, allocations: 10.49 MB / 484.8 MB, free: 0.8047 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.3428, allocations: 0 / 484.8 MB, free: 0.8047 MB / 382.1 MB
Notification: Performance of FrontEnd: time 2.043e-06/0.3428, allocations: 0 / 484.8 MB, free: 0.8047 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 0.0004346/0.3432, allocations: 0 / 484.8 MB, free: 0.8047 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: 2242
 * Number of variables: 2242
Notification: Performance of Generate backend data structure: time 0.02172/0.3649, allocations: 7.396 MB / 492.2 MB, free: 9.328 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.365, allocations: 8.031 kB / 492.2 MB, free: 9.32 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02051/0.3855, allocations: 3.978 MB / 496.1 MB, free: 5.332 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/0.4031, allocations: 4.106 MB / 0.4885 GB, free: 1.172 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005939/0.4037, allocations: 316.4 kB / 0.4888 GB, free: 0.8594 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/0.4069, allocations: 431.6 kB / 0.4892 GB, free: 448 kB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.04378/0.4507, allocations: 15.72 MB / 0.5046 GB, free: 15.79 MB / 430.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.000295/0.451, allocations: 63.47 kB / 0.5047 GB, free: 15.72 MB / 430.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001753/0.4527, allocations: 203.8 kB / 0.5048 GB, free: 15.52 MB / 430.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006313/0.459, allocations: 3.219 MB / 0.508 GB, free: 12.3 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03309/0.4921, allocations: 14.11 MB / 0.5218 GB, free: 14.17 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3093/0.8014, allocations: 57.4 MB / 0.5778 GB, free: 42.52 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.01181/0.8132, allocations: 5.354 MB / 0.5831 GB, free: 40.95 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00366/0.8169, allocations: 3.345 MB / 0.5863 GB, free: 39.72 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.01742/0.8343, allocations: 12.65 MB / 0.5987 GB, free: 31.65 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.8343, allocations: 59.94 kB / 0.5987 GB, free: 31.59 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=289): time 5.2e-06/0.8343, allocations: 0 / 0.5987 GB, free: 31.59 MB / 446.1 MB
Notification: Performance of matching and sorting (n=339): time 0.1516/0.9859, allocations: 42.5 MB / 0.6402 GB, free: 5.555 MB / 462.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001581/0.986, allocations: 220.8 kB / 0.6405 GB, free: 5.297 MB / 462.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00843/0.9945, allocations: 5.487 MB / 0.6458 GB, free: 15.94 MB / 478.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0009129/0.9954, allocations: 69.7 kB / 0.6459 GB, free: 15.86 MB / 478.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.003661/0.999, allocations: 4.536 MB / 0.6503 GB, free: 11.58 MB / 478.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.001986/1.001, allocations: 1.313 MB / 0.6516 GB, free: 10.29 MB / 478.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.003098/1.004, allocations: 1.867 MB / 0.6534 GB, free: 8.406 MB / 478.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001241/1.004, allocations: 309.5 kB / 0.6537 GB, free: 8.105 MB / 478.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.007565/1.012, allocations: 4.804 MB / 0.6584 GB, free: 3.293 MB / 478.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.01286/1.025, allocations: 9.802 MB / 0.668 GB, free: 7.129 MB / 494.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.02161/1.046, allocations: 15.58 MB / 0.6832 GB, free: 5.781 MB / 0.4981 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001973/1.046, allocations: 48 kB / 0.6832 GB, free: 5.734 MB / 0.4981 GB
Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05261/1.099, allocations: 19.56 MB / 0.7023 GB, free: 2.91 MB / 0.5137 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0002026/1.099, allocations: 84.03 kB / 0.7024 GB, free: 2.828 MB / 0.5137 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003038/1.1, allocations: 172 kB / 0.7026 GB, free: 2.66 MB / 0.5137 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0262/1.126, allocations: 5.941 MB / 0.7084 GB, free: 12.71 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00885/1.135, allocations: 2.117 MB / 0.7104 GB, free: 10.59 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04089/1.176, allocations: 25.94 MB / 0.7358 GB, free: 424 kB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2554/1.431, allocations: 0.5543 MB / 0.7363 GB, free: 193 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002777/1.434, allocations: 0.5095 MB / 0.7368 GB, free: 193 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.00829/1.442, allocations: 3.103 MB / 0.7398 GB, free: 192.9 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00187/1.444, allocations: 0.5133 MB / 0.7403 GB, free: 192.9 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03369/1.478, allocations: 12.9 MB / 0.7529 GB, free: 189.5 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001163/1.478, allocations: 54.92 kB / 0.753 GB, free: 189.5 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.743e-05/1.478, allocations: 9.188 kB / 0.753 GB, free: 189.5 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.221e-05/1.478, allocations: 15.84 kB / 0.753 GB, free: 189.5 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05616/1.534, allocations: 24.45 MB / 0.7769 GB, free: 175.3 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.256e-05/1.534, allocations: 4 kB / 0.7769 GB, free: 175.3 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003223/1.537, allocations: 0.5772 MB / 0.7775 GB, free: 174.8 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.02029/1.558, allocations: 4.968 MB / 0.7823 GB, free: 169.8 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008377/1.558, allocations: 63.53 kB / 0.7824 GB, free: 169.7 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02439/1.583, allocations: 21.15 MB / 0.803 GB, free: 148.5 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/1.583, allocations: 9.188 kB / 0.803 GB, free: 148.5 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03459/1.617, allocations: 17.45 MB / 0.8201 GB, free: 131.2 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001482/1.619, allocations: 486.6 kB / 0.8205 GB, free: 130.8 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001699/1.621, allocations: 63.34 kB / 0.8206 GB, free: 130.7 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004078/1.625, allocations: 259.6 kB / 0.8209 GB, free: 130.5 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00108/1.626, allocations: 209 kB / 0.8211 GB, free: 130.3 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000598/1.626, allocations: 87.98 kB / 0.8211 GB, free: 130.2 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.006147/1.632, allocations: 3.394 MB / 0.8245 GB, free: 126.8 MB / 0.545 GB
Notification: Performance of sort global known variables: time 1.51e-07/1.632, allocations: 4 kB / 0.8245 GB, free: 126.8 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.009304/1.642, allocations: 1.764 MB / 0.8262 GB, free: 125 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.001275/1.643, allocations: 209.5 kB / 0.8264 GB, free: 124.8 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.01608/1.659, allocations: 10.49 MB / 0.8366 GB, free: 114.4 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.659, allocations: 0 / 0.8366 GB, free: 114.4 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.005684/1.665, allocations: 3.802 MB / 0.8403 GB, free: 110.6 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/1.67, allocations: 0.6105 MB / 0.8409 GB, free: 110 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02763/1.698, allocations: 16.37 MB / 0.8569 GB, free: 93.6 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006646/1.705, allocations: 4.619 MB / 0.8614 GB, free: 88.94 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.007183/1.712, allocations: 2.974 MB / 0.8643 GB, free: 85.96 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.714, allocations: 347.4 kB / 0.8647 GB, free: 85.62 MB / 0.545 GB
Notification: Performance of SimCode: time 8.02e-07/1.714, allocations: 4 kB / 0.8647 GB, free: 85.62 MB / 0.545 GB
Notification: Performance of Templates: time 0.3761/2.09, allocations: 80.38 MB / 0.9432 GB, free: 180.6 MB / 0.545 GB
"
[Timeout remaining time 658]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.597409415058792]