Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001549/0.001549, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001726/0.001726, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 57.8 kB / 347.7 MB, free: 9.383 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3206, allocations: 49.16 MB / 396.8 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01786/0.3384, allocations: 16.06 MB / 412.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0178/0.3562, allocations: 5.954 MB / 418.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005627/0.3619, allocations: 170.4 kB / 419 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01356/0.3754, allocations: 6.097 MB / 425.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0103/0.3857, allocations: 2.954 MB / 428.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00705/0.3928, allocations: 2.269 MB / 430.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01828/0.4111, allocations: 8.839 MB / 439.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01151/0.4226, allocations: 6.209 MB / 445.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007178/0.4298, allocations: 3.28 MB / 448.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007906/0.4377, allocations: 4.19 MB / 452.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002414/0.4401, allocations: 0.7148 MB / 453.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005304/0.4454, allocations: 1.814 MB / 455.4 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005665/0.451, allocations: 3.908 MB / 459.3 MB, free: 4.512 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01027/0.4613, allocations: 3.171 MB / 462.5 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01972/0.481, allocations: 13.36 MB / 475.8 MB, free: 3.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.481, allocations: 0 / 475.8 MB, free: 3.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.481, allocations: 0 / 475.8 MB, free: 3.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00048/0.4815, allocations: 3.938 kB / 475.8 MB, free: 3.91 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.02564/0.5072, allocations: 9.093 MB / 484.9 MB, free: 10.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.5072, allocations: 11.98 kB / 484.9 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04652/0.5537, allocations: 4.888 MB / 489.8 MB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01905/0.5728, allocations: 6.643 MB / 496.5 MB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004474/0.5732, allocations: 439.6 kB / 496.9 MB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0028/0.576, allocations: 0.5818 MB / 497.5 MB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03814/0.6142, allocations: 17.28 MB / 0.5027 GB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004723/0.6146, allocations: 83.36 kB / 0.5028 GB, free: 11.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002404/0.617, allocations: 271.8 kB / 0.503 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005285/0.6223, allocations: 2.662 MB / 0.5056 GB, free: 8.785 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03536/0.6577, allocations: 14.74 MB / 0.52 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5294/1.187, allocations: 59.46 MB / 0.5781 GB, free: 106 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/1.211, allocations: 8.033 MB / 0.5859 GB, free: 105.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006359/1.217, allocations: 4.733 MB / 0.5906 GB, free: 103.8 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03427/1.251, allocations: 16.94 MB / 0.6071 GB, free: 96.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.578e-05/1.251, allocations: 62.16 kB / 0.6072 GB, free: 96.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=281): time 7.203e-06/1.251, allocations: 0 / 0.6072 GB, free: 96.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=374): time 0.2455/1.497, allocations: 74.43 MB / 0.6798 GB, free: 26.55 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001921/1.497, allocations: 372.6 kB / 0.6802 GB, free: 26.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00998/1.507, allocations: 6.175 MB / 0.6862 GB, free: 20.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001323/1.508, allocations: 85.14 kB / 0.6863 GB, free: 20.07 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003527/1.512, allocations: 4.97 MB / 0.6912 GB, free: 15.42 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002492/1.514, allocations: 1.444 MB / 0.6926 GB, free: 13.99 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003157/1.518, allocations: 1.987 MB / 0.6945 GB, free: 12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/1.518, allocations: 301.1 kB / 0.6948 GB, free: 11.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007346/1.525, allocations: 5.992 MB / 0.7006 GB, free: 5.699 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01322/1.538, allocations: 11.23 MB / 0.7116 GB, free: 8.051 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02672/1.565, allocations: 17.97 MB / 0.7292 GB, free: 3.672 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002478/1.565, allocations: 52 kB / 0.7292 GB, free: 3.621 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05813/1.623, allocations: 23.25 MB / 0.7519 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003715/1.624, allocations: 80 kB / 0.752 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004452/1.624, allocations: 172 kB / 0.7521 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02541/1.65, allocations: 7.436 MB / 0.7594 GB, free: 4.629 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009347/1.659, allocations: 2.187 MB / 0.7615 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3505/2.009, allocations: 37.29 MB / 0.798 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00874/2.018, allocations: 0.7467 MB / 0.7987 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/2.02, allocations: 0.532 MB / 0.7992 GB, free: 169.2 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.005152/2.025, allocations: 3.428 MB / 0.8026 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/2.026, allocations: 0.57 MB / 0.8031 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03054/2.057, allocations: 16.84 MB / 0.8196 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-05/2.057, allocations: 48 kB / 0.8196 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.663e-05/2.057, allocations: 16 kB / 0.8196 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.279e-05/2.057, allocations: 21.91 kB / 0.8196 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04912/2.106, allocations: 29.4 MB / 0.8484 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.066e-05/2.106, allocations: 10.03 kB / 0.8484 GB, free: 129.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003355/2.109, allocations: 0.6039 MB / 0.849 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01954/2.129, allocations: 7.015 MB / 0.8558 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00114/2.13, allocations: 64 kB / 0.8559 GB, free: 121.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04362/2.174, allocations: 35.53 MB / 0.8906 GB, free: 85.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/2.174, allocations: 3.984 kB / 0.8906 GB, free: 85.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04047/2.214, allocations: 24.52 MB / 0.9145 GB, free: 61.58 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005399/2.22, allocations: 1.559 MB / 0.916 GB, free: 60.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002225/2.222, allocations: 60 kB / 0.9161 GB, free: 59.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005369/2.227, allocations: 450.8 kB / 0.9165 GB, free: 59.53 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/2.229, allocations: 266.6 kB / 0.9168 GB, free: 59.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007021/2.229, allocations: 95.98 kB / 0.9169 GB, free: 59.17 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006289/2.236, allocations: 3.696 MB / 0.9205 GB, free: 55.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/2.236, allocations: 0 / 0.9205 GB, free: 55.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01155/2.247, allocations: 2.284 MB / 0.9227 GB, free: 53.23 MB / 0.5294 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.00159/2.249, allocations: 274.9 kB / 0.923 GB, free: 52.98 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02098/2.27, allocations: 14.2 MB / 0.9368 GB, free: 38.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.27, allocations: 4 kB / 0.9368 GB, free: 38.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01003/2.28, allocations: 6.165 MB / 0.9429 GB, free: 32.54 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009365/2.289, allocations: 0.8139 MB / 0.9437 GB, free: 31.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.269/2.558, allocations: 20.35 MB / 0.9635 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00951/2.568, allocations: 4.806 MB / 0.9682 GB, free: 177 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008657/2.576, allocations: 2.972 MB / 0.9711 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/2.579, allocations: 368.7 kB / 0.9715 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of SimCode: time 2.054e-06/2.579, allocations: 0 / 0.9715 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1491/2.728, allocations: 112.9 MB / 1.082 GB, free: 84.86 MB / 0.5294 GB " [Timeout remaining time 657] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.171205651015043]