Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001241/0.001241, allocations: 112.2 kB / 19.04 MB, free: 3.254 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.00124/0.00124, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 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.394/1.394, allocations: 225.6 MB / 250.8 MB, free: 13.37 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.PlanarFourbar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 51.91 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.263, allocations: 52.14 MB / 420.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.02216/0.2851, allocations: 18.3 MB / 439.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.2984, allocations: 6.099 MB / 445.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004165/0.3026, allocations: 143.6 kB / 445.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01262/0.3152, allocations: 6.351 MB / 451.8 MB, free: 100 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008233/0.3234, allocations: 2.922 MB / 454.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005555/0.329, allocations: 2.3 MB / 457 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01539/0.3444, allocations: 9.49 MB / 466.5 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009779/0.3542, allocations: 5.818 MB / 472.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006325/0.3605, allocations: 3.225 MB / 475.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008157/0.3686, allocations: 4.472 MB / 480 MB, free: 3.719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002644/0.3713, allocations: 0.7188 MB / 480.7 MB, free: 3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00517/0.3765, allocations: 1.959 MB / 482.7 MB, free: 1.039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006189/0.3826, allocations: 3.904 MB / 486.6 MB, free: 13.12 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008383/0.391, allocations: 4.146 MB / 490.7 MB, free: 8.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01869/0.4097, allocations: 13.27 MB / 0.4922 GB, free: 11.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4097, allocations: 0 / 0.4922 GB, free: 11.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4097, allocations: 0 / 0.4922 GB, free: 11.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00042/0.4101, allocations: 4 kB / 0.4922 GB, free: 11.63 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02296/0.4331, allocations: 9.133 MB / 0.5011 GB, free: 2.402 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.4331, allocations: 12.03 kB / 0.5011 GB, free: 2.391 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04206/0.4752, allocations: 4.892 MB / 0.5059 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0163/0.4915, allocations: 6.527 MB / 0.5123 GB, free: 6.883 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004275/0.4919, allocations: 439.7 kB / 0.5127 GB, free: 6.453 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002363/0.4943, allocations: 0.5818 MB / 0.5132 GB, free: 5.871 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0336/0.5279, allocations: 17.04 MB / 0.5299 GB, free: 3.879 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002412/0.5281, allocations: 83.36 kB / 0.53 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007955/0.5289, allocations: 267.8 kB / 0.5302 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00446/0.5334, allocations: 2.654 MB / 0.5328 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.466/0.9994, allocations: 14.79 MB / 0.5473 GB, free: 95.61 MB / 446.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06339/1.063, allocations: 64.36 MB / 0.6101 GB, free: 32.28 MB / 446.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01907/1.082, allocations: 8.493 MB / 0.6184 GB, free: 23.64 MB / 446.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004605/1.086, allocations: 4.708 MB / 0.623 GB, free: 18.92 MB / 446.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02181/1.108, allocations: 18.65 MB / 0.6412 GB, free: 268 kB / 446.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/1.108, allocations: 56.56 kB / 0.6413 GB, free: 204 kB / 446.2 MB Notification: Performance of pre-optimization done (n=281): time 5.42e-06/1.108, allocations: 4 kB / 0.6413 GB, free: 200 kB / 446.2 MB Notification: Performance of matching and sorting (n=374): time 0.2607/1.369, allocations: 74.3 MB / 0.7138 GB, free: 6.23 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002433/1.369, allocations: 376.6 kB / 0.7142 GB, free: 5.781 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01244/1.382, allocations: 6.377 MB / 0.7204 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.383, allocations: 81.7 kB / 0.7205 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004686/1.387, allocations: 4.939 MB / 0.7253 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002564/1.39, allocations: 1.438 MB / 0.7267 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006219/1.396, allocations: 1.995 MB / 0.7287 GB, free: 7.012 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000122/1.396, allocations: 305.1 kB / 0.7289 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0106/1.407, allocations: 5.992 MB / 0.7348 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2828/1.69, allocations: 11.02 MB / 0.7456 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01845/1.708, allocations: 17.96 MB / 0.7631 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001539/1.708, allocations: 51.22 kB / 0.7631 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0414/1.75, allocations: 23.28 MB / 0.7859 GB, free: 149 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.924e-05/1.75, allocations: 83.75 kB / 0.786 GB, free: 149 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001749/1.75, allocations: 177 kB / 0.7861 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01989/1.77, allocations: 7.439 MB / 0.7934 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007299/1.777, allocations: 2.18 MB / 0.7955 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04116/1.818, allocations: 38.12 MB / 0.8328 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008195/1.827, allocations: 0.7497 MB / 0.8335 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.828, allocations: 0.5312 MB / 0.834 GB, free: 100.3 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.004658/1.832, allocations: 3.436 MB / 0.8374 GB, free: 96.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/1.834, allocations: 0.6015 MB / 0.8379 GB, free: 96.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02846/1.862, allocations: 16.88 MB / 0.8544 GB, free: 79.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.087e-05/1.862, allocations: 48 kB / 0.8545 GB, free: 79.72 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.932e-05/1.862, allocations: 16 kB / 0.8545 GB, free: 79.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.653e-05/1.862, allocations: 19.94 kB / 0.8545 GB, free: 79.68 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04774/1.91, allocations: 31.95 MB / 0.8857 GB, free: 47.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/1.91, allocations: 4 kB / 0.8857 GB, free: 47.43 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002956/1.913, allocations: 0.6045 MB / 0.8863 GB, free: 46.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01855/1.932, allocations: 7.008 MB / 0.8932 GB, free: 39.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000719/1.932, allocations: 66.28 kB / 0.8932 GB, free: 39.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03921/1.971, allocations: 36.33 MB / 0.9287 GB, free: 3.094 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.971, allocations: 7.938 kB / 0.9287 GB, free: 3.086 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2519/2.223, allocations: 24.54 MB / 0.9527 GB, free: 177.6 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001397/2.225, allocations: 0.6654 MB / 0.9533 GB, free: 177.4 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/2.226, allocations: 59.81 kB / 0.9534 GB, free: 177.4 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003748/2.23, allocations: 449.2 kB / 0.9538 GB, free: 177.3 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001152/2.231, allocations: 241.2 kB / 0.954 GB, free: 177.3 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003705/2.231, allocations: 102.5 kB / 0.9541 GB, free: 177.3 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.004742/2.236, allocations: 4.042 MB / 0.9581 GB, free: 175.9 MB / 0.5451 GB Notification: Performance of sort global known variables: time 8e-08/2.236, allocations: 0 / 0.9581 GB, free: 175.9 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.007716/2.244, allocations: 2.294 MB / 0.9603 GB, free: 175.7 MB / 0.5451 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.0009118/2.245, allocations: 280.5 kB / 0.9606 GB, free: 175.5 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.01948/2.264, allocations: 14.19 MB / 0.9744 GB, free: 167.9 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/2.264, allocations: 0 / 0.9744 GB, free: 167.9 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.008706/2.273, allocations: 6.178 MB / 0.9805 GB, free: 162.6 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006328/2.279, allocations: 0.8814 MB / 0.9813 GB, free: 161.9 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02846/2.308, allocations: 20.3 MB / 1.001 GB, free: 143.1 MB / 0.5451 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004631/2.312, allocations: 5.271 MB / 1.006 GB, free: 137.8 MB / 0.5451 GB Notification: Performance of simCode: alias equations: time 0.005869/2.318, allocations: 3.012 MB / 1.009 GB, free: 134.8 MB / 0.5451 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/2.32, allocations: 387.4 kB / 1.01 GB, free: 134.5 MB / 0.5451 GB Notification: Performance of SimCode: time 1.332e-06/2.32, allocations: 0 / 1.01 GB, free: 134.5 MB / 0.5451 GB Notification: Performance of Templates: time 0.1408/2.46, allocations: 109.1 MB / 1.116 GB, free: 25.81 MB / 0.5451 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 9.529873888939619]