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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 102.9 kB / 17.58 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 47.94 kB / 280.6 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09542, allocations: 46.63 MB / 327.3 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01858/0.114, allocations: 18.57 MB / 345.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.1277, allocations: 6.143 MB / 352 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004897/0.1327, allocations: 143.6 kB / 352.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01241/0.1452, allocations: 6.281 MB / 358.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008559/0.1538, allocations: 2.852 MB / 361.3 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005131/0.159, allocations: 2.288 MB / 363.6 MB, free: 68 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01222/0.1712, allocations: 8.835 MB / 372.4 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2139/0.3851, allocations: 8.438 MB / 380.8 MB, free: 16.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00759/0.3927, allocations: 3.195 MB / 384 MB, free: 16.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009233/0.402, allocations: 4.18 MB / 388.2 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003823/0.4059, allocations: 0.7153 MB / 388.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006601/0.4125, allocations: 1.899 MB / 390.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006704/0.4192, allocations: 3.834 MB / 394.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01217/0.4314, allocations: 4.156 MB / 398.8 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02141/0.4528, allocations: 12.95 MB / 411.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.4529, allocations: 0.6562 kB / 411.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.079e-06/0.4529, allocations: 0 / 411.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0009118/0.4539, allocations: 7.844 kB / 411.8 MB, free: 7.656 MB / 318.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.02732/0.4812, allocations: 8.934 MB / 420.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.4812, allocations: 9.438 kB / 420.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04617/0.5274, allocations: 4.845 MB / 425.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0175/0.545, allocations: 6.575 MB / 432.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003644/0.5454, allocations: 436.5 kB / 432.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002322/0.5477, allocations: 0.586 MB / 433.1 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03188/0.5796, allocations: 17.06 MB / 450.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002047/0.5798, allocations: 80.67 kB / 450.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006949/0.5805, allocations: 266.2 kB / 450.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004243/0.5848, allocations: 2.66 MB / 453.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02956/0.6144, allocations: 14.79 MB / 468 MB, free: 3.898 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/0.7181, allocations: 64.63 MB / 0.5201 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02478/0.7429, allocations: 8.781 MB / 0.5287 GB, free: 9.578 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007274/0.7503, allocations: 5.063 MB / 0.5336 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.253/1.003, allocations: 18.64 MB / 0.5519 GB, free: 150.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/1.003, allocations: 66.67 kB / 0.5519 GB, free: 150.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.991e-06/1.003, allocations: 0 / 0.5519 GB, free: 150.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2454/1.249, allocations: 74.07 MB / 0.6243 GB, free: 94.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.249, allocations: 372.6 kB / 0.6246 GB, free: 94.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008126/1.257, allocations: 6.423 MB / 0.6309 GB, free: 87.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001209/1.258, allocations: 84.36 kB / 0.631 GB, free: 87.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002437/1.261, allocations: 4.76 MB / 0.6356 GB, free: 82.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/1.263, allocations: 1.372 MB / 0.637 GB, free: 81.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002704/1.265, allocations: 1.982 MB / 0.6389 GB, free: 79.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.849e-05/1.266, allocations: 309.1 kB / 0.6392 GB, free: 79.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006227/1.272, allocations: 5.988 MB / 0.645 GB, free: 73.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008441/1.28, allocations: 11.01 MB / 0.6558 GB, free: 59.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0182/1.298, allocations: 17.97 MB / 0.6733 GB, free: 39.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/1.299, allocations: 48 kB / 0.6734 GB, free: 39.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.2724/1.571, allocations: 23.34 MB / 0.6962 GB, free: 132 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001469/1.571, allocations: 78.31 kB / 0.6962 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000267/1.571, allocations: 177.6 kB / 0.6964 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02429/1.596, allocations: 7.458 MB / 0.7037 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008532/1.604, allocations: 2.189 MB / 0.7058 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04382/1.648, allocations: 38.1 MB / 0.743 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009376/1.658, allocations: 0.743 MB / 0.7438 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001745/1.659, allocations: 0.5302 MB / 0.7443 GB, free: 115.9 MB / 446.1 MB 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.006267/1.666, allocations: 3.439 MB / 0.7477 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001486/1.667, allocations: 0.5756 MB / 0.7482 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02991/1.697, allocations: 16.95 MB / 0.7648 GB, free: 98.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-05/1.697, allocations: 51.98 kB / 0.7648 GB, free: 98.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.033e-05/1.697, allocations: 16 kB / 0.7648 GB, free: 98.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.332e-05/1.697, allocations: 15.94 kB / 0.7648 GB, free: 98.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05029/1.748, allocations: 32.17 MB / 0.7963 GB, free: 65.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/1.748, allocations: 4 kB / 0.7963 GB, free: 65.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003399/1.751, allocations: 0.6125 MB / 0.7969 GB, free: 65.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01947/1.771, allocations: 7.037 MB / 0.8037 GB, free: 58.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008862/1.771, allocations: 60 kB / 0.8038 GB, free: 58.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03895/1.81, allocations: 36.32 MB / 0.8393 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.81, allocations: 3 kB / 0.8393 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2705/2.081, allocations: 24.6 MB / 0.8633 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005157/2.086, allocations: 1.657 MB / 0.8649 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002793/2.089, allocations: 61.39 kB / 0.865 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005953/2.095, allocations: 455.7 kB / 0.8654 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001221/2.096, allocations: 246.6 kB / 0.8656 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003405/2.097, allocations: 94.48 kB / 0.8657 GB, free: 130.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006434/2.103, allocations: 4.085 MB / 0.8697 GB, free: 129.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/2.103, allocations: 0 / 0.8697 GB, free: 129.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01018/2.113, allocations: 2.294 MB / 0.872 GB, free: 129.1 MB / 446.1 MB 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.001202/2.114, allocations: 275.6 kB / 0.8722 GB, free: 129 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.03287/2.147, allocations: 20.05 MB / 0.8918 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.808e-05/2.147, allocations: 3.938 kB / 0.8918 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01234/2.16, allocations: 6.703 MB / 0.8984 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009009/2.169, allocations: 0.888 MB / 0.8992 GB, free: 119.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03531/2.204, allocations: 20.19 MB / 0.9189 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009505/2.214, allocations: 5.282 MB / 0.9241 GB, free: 97.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00835/2.222, allocations: 3.024 MB / 0.927 GB, free: 95.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/2.224, allocations: 383.4 kB / 0.9274 GB, free: 94.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/2.224, allocations: 4 kB / 0.9274 GB, free: 94.7 MB / 446.1 MB Notification: Performance of Templates: time 0.3632/2.587, allocations: 113.1 MB / 1.038 GB, free: 117.7 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (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) 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) Reference file matches