Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.00175/0.00175, 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.002037/0.002037, 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.411/1.411, 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1")
translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 47.91 kB / 370.9 MB, free: 9.355 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2442, allocations: 52.17 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01781/0.262, allocations: 16.02 MB / 439.1 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01173/0.2737, allocations: 5.151 MB / 444.3 MB, free: 9.449 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.003387/0.2771, allocations: 135.2 kB / 444.4 MB, free: 9.316 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.008368/0.2855, allocations: 4.516 MB / 448.9 MB, free: 4.785 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.006732/0.2922, allocations: 2.622 MB / 451.6 MB, free: 2.152 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002896/0.2951, allocations: 1.147 MB / 452.7 MB, free: 1.004 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.01283/0.3079, allocations: 7.992 MB / 460.7 MB, free: 8.996 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.006629/0.3146, allocations: 3.957 MB / 464.7 MB, free: 4.965 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.006009/0.3206, allocations: 2.512 MB / 467.2 MB, free: 2.445 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.008355/0.3289, allocations: 3.626 MB / 470.8 MB, free: 14.81 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.002178/0.3311, allocations: 0.5039 MB / 471.3 MB, free: 14.3 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.005232/0.3363, allocations: 1.541 MB / 472.8 MB, free: 12.76 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.005482/0.3418, allocations: 3.05 MB / 475.9 MB, free: 9.703 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.006946/0.3488, allocations: 3.352 MB / 479.2 MB, free: 6.332 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.01711/0.3659, allocations: 10.39 MB / 489.6 MB, free: 11.9 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.3659, allocations: 4 kB / 489.6 MB, free: 11.9 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.994e-06/0.3659, allocations: 0 / 489.6 MB, free: 11.9 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 0.0002946/0.3662, allocations: 0 / 489.6 MB, free: 11.9 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: 2058
 * Number of variables: 2058
Notification: Performance of Generate backend data structure: time 0.01794/0.3841, allocations: 7.719 MB / 497.4 MB, free: 4.102 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3842, allocations: 12.03 kB / 497.4 MB, free: 4.09 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.399, allocations: 3.222 MB / 0.4889 GB, free: 0.8594 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.4099, allocations: 4.759 MB / 0.4935 GB, free: 12.02 MB / 414.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003074/0.4102, allocations: 341 kB / 0.4938 GB, free: 11.68 MB / 414.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001582/0.4117, allocations: 467.6 kB / 0.4943 GB, free: 11.22 MB / 414.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.02762/0.4394, allocations: 14.57 MB / 0.5085 GB, free: 11.72 MB / 430.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0002146/0.4396, allocations: 75.42 kB / 0.5086 GB, free: 11.64 MB / 430.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006788/0.4403, allocations: 211.8 kB / 0.5088 GB, free: 11.44 MB / 430.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005686/0.4459, allocations: 2.836 MB / 0.5115 GB, free: 8.594 MB / 430.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02883/0.4748, allocations: 13.21 MB / 0.5244 GB, free: 11.35 MB / 446.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3476/0.8224, allocations: 58.24 MB / 0.5813 GB, free: 62.55 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0164/0.8388, allocations: 6.938 MB / 0.5881 GB, free: 57.91 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.004807/0.8436, allocations: 4.591 MB / 0.5926 GB, free: 53.32 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.01685/0.8604, allocations: 12.42 MB / 0.6047 GB, free: 41.1 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.8604, allocations: 72.62 kB / 0.6048 GB, free: 41.02 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=326): time 5.019e-06/0.8605, allocations: 3.938 kB / 0.6048 GB, free: 41.02 MB / 446.1 MB
Notification: Performance of matching and sorting (n=572): time 2.185/3.046, allocations: 411.2 MB / 1.006 GB, free: 132.7 MB / 0.5294 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/3.046, allocations: 273.6 kB / 1.007 GB, free: 132.4 MB / 0.5294 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006979/3.053, allocations: 5.454 MB / 1.012 GB, free: 127.2 MB / 0.5294 GB
Notification: Performance of collectPreVariables (initialization): time 0.002055/3.055, allocations: 117.1 kB / 1.012 GB, free: 127.1 MB / 0.5294 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002099/3.057, allocations: 4.083 MB / 1.016 GB, free: 124 MB / 0.5294 GB
Notification: Performance of collectInitialBindings (initialization): time 0.002842/3.06, allocations: 2.105 MB / 1.018 GB, free: 121.9 MB / 0.5294 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.004346/3.064, allocations: 2.194 MB / 1.02 GB, free: 119.7 MB / 0.5294 GB
Notification: Performance of setup shared object (initialization): time 5.98e-05/3.064, allocations: 301.1 kB / 1.021 GB, free: 119.4 MB / 0.5294 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.01256/3.077, allocations: 11.06 MB / 1.031 GB, free: 108.4 MB / 0.5294 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.01497/3.092, allocations: 15.24 MB / 1.046 GB, free: 91.29 MB / 0.5294 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.03006/3.122, allocations: 27.45 MB / 1.073 GB, free: 61.96 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001372/3.122, allocations: 40 kB / 1.073 GB, free: 61.92 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=1259) (initialization): time 0.5984/3.72, allocations: 140.7 MB / 1.211 GB, free: 115.1 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/3.721, allocations: 64 kB / 1.211 GB, free: 115 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/3.721, allocations: 139.5 kB / 1.211 GB, free: 114.9 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.07726/3.798, allocations: 34.69 MB / 1.245 GB, free: 80.55 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005012/3.803, allocations: 1.576 MB / 1.246 GB, free: 79.11 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5202/4.323, allocations: 203.2 MB / 1.445 GB, free: 93.6 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01353/4.337, allocations: 1.721 MB / 1.446 GB, free: 91.89 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002618/4.339, allocations: 0.531 MB / 1.447 GB, free: 91.36 MB / 0.545 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 632
 * Number of states: 0 ()
 * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (840):
 * Single equations (assignments): 833
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 3 systems
   {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(12,76)}
Notification: Performance of prepare postOptimizeDAE: time 0.007078/4.346, allocations: 3.097 MB / 1.45 GB, free: 88.48 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/4.348, allocations: 0.6076 MB / 1.45 GB, free: 88.07 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5146/4.863, allocations: 136.3 MB / 1.584 GB, free: 151.3 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.16e-05/4.863, allocations: 57.38 kB / 1.584 GB, free: 151.2 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001586/4.863, allocations: 60 kB / 1.584 GB, free: 151.1 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001225/4.863, allocations: 27.89 kB / 1.584 GB, free: 151.1 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5827/5.446, allocations: 205.6 MB / 1.784 GB, free: 148.1 MB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.234e-05/5.446, allocations: 3.938 kB / 1.784 GB, free: 148.1 MB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/5.448, allocations: 332.9 kB / 1.785 GB, free: 148 MB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.07284/5.521, allocations: 33.43 MB / 1.817 GB, free: 122.1 MB / 0.545 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/5.522, allocations: 96 kB / 1.817 GB, free: 122.1 MB / 0.545 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4509/5.973, allocations: 185.9 MB / 1.999 GB, free: 137.3 MB / 0.545 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.497e-06/5.973, allocations: 11.75 kB / 1.999 GB, free: 137.3 MB / 0.545 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5934/6.567, allocations: 152.2 MB / 2.148 GB, free: 150.9 MB / 0.545 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001763/6.568, allocations: 0.5855 MB / 2.148 GB, free: 150.8 MB / 0.545 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002757/6.571, allocations: 103.6 kB / 2.148 GB, free: 150.8 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01017/6.581, allocations: 1.487 MB / 2.15 GB, free: 150.8 MB / 0.545 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003752/6.585, allocations: 0.5141 MB / 2.15 GB, free: 150.8 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009914/6.586, allocations: 143.2 kB / 2.15 GB, free: 150.8 MB / 0.545 GB
Notification: Performance of sorting global known variables: time 0.004788/6.591, allocations: 3.473 MB / 2.154 GB, free: 150.3 MB / 0.545 GB
Notification: Performance of sort global known variables: time 1.1e-07/6.591, allocations: 1.031 kB / 2.154 GB, free: 150.3 MB / 0.545 GB
Notification: Performance of remove unused functions: time 0.01174/6.603, allocations: 3.86 MB / 2.158 GB, free: 150 MB / 0.545 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 27
 * 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 (165):
 * Single equations (assignments): 158
 * Array equations: 3
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 3 systems
   {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 1 system
   {(12,86)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001343/6.604, allocations: 240.5 kB / 2.158 GB, free: 149.9 MB / 0.545 GB
Notification: Performance of simCode: created initialization part: time 0.05421/6.658, allocations: 32.74 MB / 2.19 GB, free: 138.6 MB / 0.545 GB
Notification: Performance of simCode: created event and clocks part: time 1.266e-05/6.658, allocations: 4 kB / 2.19 GB, free: 138.6 MB / 0.545 GB
Notification: Performance of simCode: created simulation system equations: time 0.038/6.696, allocations: 19.59 MB / 2.209 GB, free: 123.4 MB / 0.545 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006902/6.703, allocations: 0.7751 MB / 2.21 GB, free: 122.7 MB / 0.545 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03615/6.739, allocations: 27.47 MB / 2.236 GB, free: 98.04 MB / 0.545 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005497/6.745, allocations: 5.099 MB / 2.241 GB, free: 94.18 MB / 0.545 GB
Notification: Performance of simCode: alias equations: time 0.00414/6.749, allocations: 2.06 MB / 2.243 GB, free: 92.94 MB / 0.545 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000909/6.75, allocations: 307.1 kB / 2.244 GB, free: 92.65 MB / 0.545 GB
Notification: Performance of SimCode: time 1.513e-06/6.75, allocations: 0 / 2.244 GB, free: 92.65 MB / 0.545 GB
Notification: Performance of Templates: time 0.5222/7.272, allocations: 285.8 MB / 2.523 GB, free: 14.32 MB / 0.5606 GB
"
[Timeout remaining time 653]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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: 16.85015504527837]