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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 113.5 kB / 17.06 MB, free: 6 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.001439/0.00144, allocations: 198.9 kB / 18 MB, free: 5.078 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.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 39.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2616, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01966/0.2813, allocations: 18.17 MB / 418.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.2942, allocations: 6.054 MB / 424.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004949/0.2992, allocations: 139.6 kB / 424.6 MB, free: 364 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01195/0.3111, allocations: 6.277 MB / 430.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007641/0.3189, allocations: 2.836 MB / 433.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004835/0.3237, allocations: 2.277 MB / 436 MB, free: 4.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01257/0.3363, allocations: 9.496 MB / 445.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01167/0.348, allocations: 8.419 MB / 453.9 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005941/0.354, allocations: 3.21 MB / 457.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006584/0.3606, allocations: 4.164 MB / 461.3 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002322/0.363, allocations: 0.7148 MB / 462 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005964/0.3689, allocations: 1.92 MB / 463.9 MB, free: 8.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005025/0.374, allocations: 3.819 MB / 467.7 MB, free: 5.039 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0076/0.3816, allocations: 4.419 MB / 472.1 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0162/0.3979, allocations: 13.89 MB / 486 MB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3979, allocations: 0 / 486 MB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3979, allocations: 0 / 486 MB, free: 2.668 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000446/0.3984, allocations: 0 / 486 MB, free: 2.668 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.02994/0.4283, allocations: 9.422 MB / 495.5 MB, free: 9.156 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.4284, allocations: 8.031 kB / 495.5 MB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003423/0.4318, allocations: 1.135 MB / 496.6 MB, free: 8.004 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3445/0.7764, allocations: 23.23 MB / 0.5076 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/0.7964, allocations: 7.974 MB / 0.5154 GB, free: 8.684 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004576/0.7969, allocations: 431.7 kB / 0.5158 GB, free: 8.262 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00226/0.7992, allocations: 0.5893 MB / 0.5164 GB, free: 7.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03519/0.8344, allocations: 16.85 MB / 0.5329 GB, free: 5.871 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003347/0.8347, allocations: 87.27 kB / 0.533 GB, free: 5.785 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001728/0.8365, allocations: 263.8 kB / 0.5332 GB, free: 5.527 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004546/0.841, allocations: 2.654 MB / 0.5358 GB, free: 2.871 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4055/1.247, allocations: 14.4 MB / 0.5499 GB, free: 120.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06416/1.311, allocations: 63.7 MB / 0.6121 GB, free: 59.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/1.331, allocations: 8.623 MB / 0.6205 GB, free: 50.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004445/1.336, allocations: 4.913 MB / 0.6253 GB, free: 45.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02327/1.359, allocations: 18.12 MB / 0.643 GB, free: 27.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/1.359, allocations: 64.56 kB / 0.643 GB, free: 27.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 5.5e-06/1.359, allocations: 7.922 kB / 0.6431 GB, free: 27.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2518/1.611, allocations: 72.76 MB / 0.7141 GB, free: 2.25 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002081/1.611, allocations: 380.5 kB / 0.7145 GB, free: 1.797 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009473/1.621, allocations: 6.422 MB / 0.7207 GB, free: 11.38 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000965/1.622, allocations: 85.69 kB / 0.7208 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003601/1.625, allocations: 4.84 MB / 0.7255 GB, free: 6.383 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001945/1.627, allocations: 1.368 MB / 0.7269 GB, free: 4.996 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003149/1.631, allocations: 1.84 MB / 0.7287 GB, free: 3.141 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.198e-05/1.631, allocations: 301.1 kB / 0.729 GB, free: 2.844 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2134/1.844, allocations: 5.656 MB / 0.7345 GB, free: 174.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00998/1.854, allocations: 10.61 MB / 0.7449 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02038/1.874, allocations: 17.36 MB / 0.7618 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001775/1.875, allocations: 49.38 kB / 0.7619 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03965/1.914, allocations: 21.96 MB / 0.7833 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.925e-05/1.914, allocations: 87.75 kB / 0.7834 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/1.915, allocations: 168 kB / 0.7835 GB, free: 140 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02597/1.941, allocations: 6.858 MB / 0.7902 GB, free: 133.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007392/1.948, allocations: 2.07 MB / 0.7923 GB, free: 131.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04017/1.988, allocations: 36.4 MB / 0.8278 GB, free: 94.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009379/1.998, allocations: 0.7076 MB / 0.8285 GB, free: 93.86 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001719/1.999, allocations: 0.5155 MB / 0.829 GB, free: 93.34 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * 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 (1015): * Single equations (assignments): 1008 * 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.005691/2.005, allocations: 3.414 MB / 0.8323 GB, free: 90.02 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/2.006, allocations: 0.5872 MB / 0.8329 GB, free: 89.75 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02835/2.035, allocations: 16.12 MB / 0.8486 GB, free: 73.57 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/2.035, allocations: 52 kB / 0.8487 GB, free: 73.52 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.315e-05/2.035, allocations: 19.56 kB / 0.8487 GB, free: 73.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.199e-05/2.035, allocations: 15.94 kB / 0.8487 GB, free: 73.49 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0521/2.087, allocations: 31.29 MB / 0.8793 GB, free: 41.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.861e-05/2.087, allocations: 7.938 kB / 0.8793 GB, free: 41.93 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/2.091, allocations: 0.6045 MB / 0.8799 GB, free: 41.32 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01916/2.11, allocations: 6.44 MB / 0.8862 GB, free: 34.87 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009455/2.111, allocations: 60 kB / 0.8862 GB, free: 34.81 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03871/2.15, allocations: 34.63 MB / 0.92 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/2.15, allocations: 4 kB / 0.9201 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2455/2.395, allocations: 23.54 MB / 0.943 GB, free: 170.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001539/2.397, allocations: 0.6313 MB / 0.9437 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001172/2.398, allocations: 59.34 kB / 0.9437 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004281/2.402, allocations: 427 kB / 0.9441 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00109/2.403, allocations: 255.9 kB / 0.9444 GB, free: 170.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003696/2.404, allocations: 97.08 kB / 0.9445 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004878/2.408, allocations: 4.105 MB / 0.9485 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3e-07/2.408, allocations: 0 / 0.9485 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007787/2.416, allocations: 2.194 MB / 0.9506 GB, free: 168.6 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.03509/2.451, allocations: 24.33 MB / 0.9744 GB, free: 153 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0172/2.469, allocations: 14.28 MB / 0.9883 GB, free: 139 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/2.469, allocations: 4 kB / 0.9883 GB, free: 139 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008564/2.477, allocations: 6.581 MB / 0.9947 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00544/2.483, allocations: 0.9324 MB / 0.9957 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1383/2.621, allocations: 102.6 MB / 1.096 GB, free: 20.93 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005526/2.627, allocations: 5.267 MB / 1.101 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006198/2.633, allocations: 3.032 MB / 1.104 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005056/2.638, allocations: 3.393 MB / 1.107 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/2.638, allocations: 7.438 kB / 1.107 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4084/3.046, allocations: 169.6 MB / 1.273 GB, free: 61.74 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.42/28.47, allocations: 15.98 kB / 1.273 GB, free: 61.73 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > 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