Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002096/0.002096, allocations: 210 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.418/1.418, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 47.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2406, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01976/0.2604, allocations: 15.61 MB / 447.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01216/0.2726, allocations: 5.835 MB / 453.8 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.2744, allocations: 171.1 kB / 453.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01101/0.2854, allocations: 6.075 MB / 460 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006663/0.2921, allocations: 2.899 MB / 462.9 MB, free: 8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00445/0.2966, allocations: 2.257 MB / 465.2 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01188/0.3084, allocations: 9.711 MB / 474.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007125/0.3156, allocations: 6.236 MB / 481.1 MB, free: 5.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00426/0.3198, allocations: 3.245 MB / 484.4 MB, free: 2.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005894/0.3257, allocations: 4.472 MB / 488.8 MB, free: 13.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00125/0.327, allocations: 0.7148 MB / 489.6 MB, free: 13.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003232/0.3302, allocations: 1.818 MB / 491.4 MB, free: 11.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003815/0.334, allocations: 3.881 MB / 495.2 MB, free: 7.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003873/0.3379, allocations: 3.151 MB / 498.4 MB, free: 4.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.3516, allocations: 13.28 MB / 0.4997 GB, free: 7.016 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3516, allocations: 3.938 kB / 0.4997 GB, free: 7.012 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3516, allocations: 0 / 0.4997 GB, free: 7.012 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002204/0.3518, allocations: 0 / 0.4997 GB, free: 7.012 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.01801/0.3698, allocations: 9.071 MB / 0.5085 GB, free: 13.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.3699, allocations: 8.031 kB / 0.5086 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04561/0.4155, allocations: 4.892 MB / 0.5133 GB, free: 8.953 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01689/0.4324, allocations: 6.319 MB / 0.5195 GB, free: 2.547 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003638/0.4327, allocations: 435.7 kB / 0.5199 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001534/0.4343, allocations: 0.5809 MB / 0.5205 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3679/0.8022, allocations: 17.27 MB / 0.5374 GB, free: 91.41 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002711/0.8025, allocations: 77.86 kB / 0.5374 GB, free: 91.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008034/0.8033, allocations: 271.5 kB / 0.5377 GB, free: 91.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005199/0.8085, allocations: 2.658 MB / 0.5403 GB, free: 91.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02508/0.8335, allocations: 14.74 MB / 0.5547 GB, free: 85.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06127/0.8948, allocations: 59.35 MB / 0.6126 GB, free: 25.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02091/0.9157, allocations: 8.037 MB / 0.6205 GB, free: 17.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004668/0.9204, allocations: 4.73 MB / 0.6251 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02554/0.9459, allocations: 16.93 MB / 0.6416 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/0.946, allocations: 64.5 kB / 0.6417 GB, free: 11.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.332e-06/0.946, allocations: 0 / 0.6417 GB, free: 11.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2717/1.218, allocations: 74.32 MB / 0.7143 GB, free: 1.914 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002297/1.218, allocations: 380.5 kB / 0.7146 GB, free: 1.461 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008776/1.227, allocations: 6.119 MB / 0.7206 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007819/1.228, allocations: 85.7 kB / 0.7207 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003847/1.231, allocations: 4.968 MB / 0.7256 GB, free: 6.43 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00182/1.233, allocations: 1.442 MB / 0.727 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003251/1.236, allocations: 1.987 MB / 0.7289 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001204/1.237, allocations: 301.1 kB / 0.7292 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008659/1.245, allocations: 5.996 MB / 0.735 GB, free: 12.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2041/1.449, allocations: 11.22 MB / 0.746 GB, free: 183.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01824/1.468, allocations: 17.96 MB / 0.7635 GB, free: 172 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001327/1.468, allocations: 48 kB / 0.7636 GB, free: 172 MB / 0.545 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.03827/1.506, allocations: 23.25 MB / 0.7863 GB, free: 162.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.209e-05/1.506, allocations: 81 kB / 0.7864 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/1.506, allocations: 172 kB / 0.7865 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02036/1.527, allocations: 7.439 MB / 0.7938 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006894/1.533, allocations: 2.187 MB / 0.7959 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04221/1.576, allocations: 37.32 MB / 0.8324 GB, free: 116.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008459/1.584, allocations: 0.741 MB / 0.8331 GB, free: 115.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001595/1.586, allocations: 0.5309 MB / 0.8336 GB, free: 115 MB / 0.545 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.005246/1.591, allocations: 3.426 MB / 0.837 GB, free: 111.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.592, allocations: 0.5606 MB / 0.8375 GB, free: 111.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0295/1.622, allocations: 16.84 MB / 0.854 GB, free: 94.52 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.858e-05/1.622, allocations: 48 kB / 0.854 GB, free: 94.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.147e-05/1.622, allocations: 16 kB / 0.854 GB, free: 94.46 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.748e-05/1.622, allocations: 23.92 kB / 0.854 GB, free: 94.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04831/1.67, allocations: 29.4 MB / 0.8828 GB, free: 64.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/1.67, allocations: 4 kB / 0.8828 GB, free: 64.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003032/1.673, allocations: 0.6042 MB / 0.8833 GB, free: 64.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01942/1.693, allocations: 7.009 MB / 0.8902 GB, free: 57.17 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007756/1.693, allocations: 63.98 kB / 0.8903 GB, free: 57.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0401/1.734, allocations: 35.53 MB / 0.9249 GB, free: 21.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.734, allocations: 7.938 kB / 0.925 GB, free: 21.49 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04028/1.774, allocations: 24.51 MB / 0.9489 GB, free: 12.92 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2117/1.986, allocations: 0.5274 MB / 0.9494 GB, free: 191.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001849/1.987, allocations: 62.08 kB / 0.9495 GB, free: 191.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004654/1.992, allocations: 447.3 kB / 0.9499 GB, free: 191.8 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001268/1.993, allocations: 263.4 kB / 0.9501 GB, free: 191.8 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004174/1.994, allocations: 96.55 kB / 0.9502 GB, free: 191.8 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005472/1.999, allocations: 3.657 MB / 0.9538 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8e-08/1.999, allocations: 2.406 kB / 0.9538 GB, free: 191.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008677/2.008, allocations: 2.273 MB / 0.956 GB, free: 191.6 MB / 0.5607 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.001005/2.009, allocations: 284 kB / 0.9563 GB, free: 191.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01785/2.027, allocations: 14.2 MB / 0.9702 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/2.027, allocations: 4.625 kB / 0.9702 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008213/2.035, allocations: 6.158 MB / 0.9762 GB, free: 185.3 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004512/2.04, allocations: 0.8065 MB / 0.977 GB, free: 184.9 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0257/2.065, allocations: 20.26 MB / 0.9968 GB, free: 169.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004743/2.07, allocations: 4.796 MB / 1.001 GB, free: 165.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005677/2.076, allocations: 2.967 MB / 1.004 GB, free: 163.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001475/2.077, allocations: 358.8 kB / 1.005 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.142e-06/2.077, allocations: 0 / 1.005 GB, free: 163.6 MB / 0.5607 GB Notification: Performance of Templates: time 0.1289/2.206, allocations: 112.7 MB / 1.115 GB, free: 52.8 MB / 0.5607 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.227489096985664]