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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w",fileNamePrefix="Modelica_4.0.0_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.001306/0.001306, allocations: 112.3 kB / 17.74 MB, free: 5.336 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.001375/0.001375, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 47.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2575, allocations: 49.43 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01741/0.275, allocations: 18.17 MB / 419.6 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.2873, allocations: 6.057 MB / 425.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003249/0.2906, allocations: 147.5 kB / 425.8 MB, free: 424 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.301, allocations: 6.258 MB / 432 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00713/0.3082, allocations: 2.843 MB / 434.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004654/0.3129, allocations: 2.281 MB / 437.2 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.3243, allocations: 9.488 MB / 446.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008914/0.3333, allocations: 8.419 MB / 455.1 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005326/0.3386, allocations: 3.21 MB / 458.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006128/0.3448, allocations: 4.172 MB / 462.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001763/0.3466, allocations: 0.7148 MB / 463.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003798/0.3504, allocations: 1.912 MB / 465.1 MB, free: 8.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003716/0.3541, allocations: 3.854 MB / 468.9 MB, free: 5.082 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00464/0.3588, allocations: 4.142 MB / 473.1 MB, free: 0.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.372, allocations: 13.23 MB / 486.3 MB, free: 3.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.372, allocations: 0 / 486.3 MB, free: 3.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.372, allocations: 0 / 486.3 MB, free: 3.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003643/0.3724, allocations: 0 / 486.3 MB, free: 3.648 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.0202/0.3926, allocations: 8.919 MB / 495.2 MB, free: 10.64 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3927, allocations: 8.031 kB / 495.2 MB, free: 10.63 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04026/0.4329, allocations: 4.844 MB / 0.4883 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01477/0.4477, allocations: 6.501 MB / 0.4947 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/0.4482, allocations: 443.7 kB / 0.4951 GB, free: 14.76 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002116/0.4503, allocations: 0.5856 MB / 0.4957 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03084/0.4811, allocations: 17.05 MB / 0.5123 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002417/0.4814, allocations: 79.27 kB / 0.5124 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000833/0.4823, allocations: 267.8 kB / 0.5127 GB, free: 11.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004018/0.4863, allocations: 2.654 MB / 0.5153 GB, free: 9.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02965/0.516, allocations: 14.78 MB / 0.5297 GB, free: 10.38 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4569/0.9729, allocations: 64.24 MB / 0.5924 GB, free: 78 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01999/0.993, allocations: 8.782 MB / 0.601 GB, free: 69.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004863/0.9979, allocations: 5.066 MB / 0.606 GB, free: 64.03 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02283/1.021, allocations: 18.63 MB / 0.6241 GB, free: 45.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/1.021, allocations: 64.5 kB / 0.6242 GB, free: 45.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.691e-06/1.021, allocations: 0 / 0.6242 GB, free: 45.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2331/1.254, allocations: 73.99 MB / 0.6965 GB, free: 3.266 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000195/1.254, allocations: 384.6 kB / 0.6968 GB, free: 2.809 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009497/1.264, allocations: 6.368 MB / 0.703 GB, free: 12.43 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001116/1.265, allocations: 85.7 kB / 0.7031 GB, free: 12.34 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003632/1.269, allocations: 4.753 MB / 0.7078 GB, free: 7.527 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00209/1.271, allocations: 1.38 MB / 0.7091 GB, free: 6.129 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003607/1.274, allocations: 1.978 MB / 0.711 GB, free: 4.137 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001077/1.274, allocations: 309.1 kB / 0.7113 GB, free: 3.832 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008597/1.283, allocations: 5.988 MB / 0.7172 GB, free: 13.83 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01276/1.296, allocations: 11.01 MB / 0.7279 GB, free: 380 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2669/1.563, allocations: 17.95 MB / 0.7455 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002385/1.563, allocations: 49.31 kB / 0.7455 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.04235/1.605, allocations: 23.34 MB / 0.7683 GB, free: 175 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/1.605, allocations: 80.06 kB / 0.7684 GB, free: 175 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/1.606, allocations: 171.6 kB / 0.7686 GB, free: 175 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0198/1.625, allocations: 7.446 MB / 0.7758 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007084/1.633, allocations: 2.187 MB / 0.778 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04086/1.674, allocations: 38.1 MB / 0.8152 GB, free: 131.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008118/1.682, allocations: 0.7384 MB / 0.8159 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/1.683, allocations: 0.531 MB / 0.8164 GB, free: 130.7 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.005403/1.689, allocations: 3.435 MB / 0.8198 GB, free: 127.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001346/1.69, allocations: 0.5764 MB / 0.8203 GB, free: 127.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02819/1.718, allocations: 16.96 MB / 0.8369 GB, free: 110.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.112e-05/1.718, allocations: 44 kB / 0.8369 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.484e-05/1.718, allocations: 20 kB / 0.837 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.642e-05/1.718, allocations: 19.94 kB / 0.837 GB, free: 110 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04498/1.763, allocations: 32.03 MB / 0.8683 GB, free: 77.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.221e-05/1.764, allocations: 7.938 kB / 0.8683 GB, free: 77.61 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002864/1.766, allocations: 0.6006 MB / 0.8689 GB, free: 77.01 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01763/1.784, allocations: 7.012 MB / 0.8757 GB, free: 69.98 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008313/1.785, allocations: 67.98 kB / 0.8758 GB, free: 69.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03758/1.823, allocations: 36.3 MB / 0.9112 GB, free: 33.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.823, allocations: 7.984 kB / 0.9112 GB, free: 33.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03447/1.857, allocations: 24.6 MB / 0.9352 GB, free: 8.453 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/1.859, allocations: 0.6341 MB / 0.9359 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001516/1.86, allocations: 64.06 kB / 0.9359 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003826/1.864, allocations: 443.3 kB / 0.9363 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2401/2.104, allocations: 243.3 kB / 0.9366 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001111/2.105, allocations: 91.98 kB / 0.9367 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008746/2.114, allocations: 4.049 MB / 0.9406 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.21e-07/2.114, allocations: 3.625 kB / 0.9406 GB, free: 178.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009639/2.124, allocations: 2.296 MB / 0.9429 GB, free: 178.2 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.00118/2.125, allocations: 278.6 kB / 0.9431 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02025/2.145, allocations: 14.89 MB / 0.9577 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/2.145, allocations: 5.312 kB / 0.9577 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.009449/2.155, allocations: 6.709 MB / 0.9642 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005396/2.16, allocations: 0.8771 MB / 0.9651 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03058/2.191, allocations: 20.59 MB / 0.9852 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006622/2.198, allocations: 5.221 MB / 0.9903 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002471/2.2, allocations: 444.4 kB / 0.9907 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.724e-06/2.2, allocations: 0 / 0.9907 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.4672/2.667, allocations: 210.7 MB / 1.197 GB, free: 129.2 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarFourbar/PlanarFourbar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches