Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001587/0.001587, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00199/0.00199, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.94 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09865, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.212/0.3107, allocations: 18.03 MB / 375.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.3247, allocations: 6.057 MB / 381.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005244/0.3299, allocations: 146 kB / 381.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01246/0.3425, allocations: 6.234 MB / 388 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009577/0.3521, allocations: 2.815 MB / 390.9 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006181/0.3583, allocations: 2.269 MB / 393.1 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01631/0.3746, allocations: 9.692 MB / 402.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.013/0.3877, allocations: 8.423 MB / 411.2 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006663/0.3944, allocations: 3.163 MB / 414.4 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006916/0.4013, allocations: 4.16 MB / 418.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003114/0.4045, allocations: 0.7187 MB / 419.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005867/0.4104, allocations: 1.892 MB / 421.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0058/0.4162, allocations: 3.761 MB / 424.9 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009669/0.4259, allocations: 4.399 MB / 429.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01949/0.4454, allocations: 13.54 MB / 442.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4455, allocations: 0 / 442.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4455, allocations: 0 / 442.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005365/0.4461, allocations: 0 / 442.9 MB, free: 5.805 MB / 350.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.03668/0.4828, allocations: 9.422 MB / 452.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.49e-05/0.4828, allocations: 8.031 kB / 452.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004768/0.4876, allocations: 1.135 MB / 453.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3335/0.8212, allocations: 23.24 MB / 476.7 MB, free: 3.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/0.841, allocations: 7.416 MB / 484.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004158/0.8415, allocations: 431.9 kB / 484.5 MB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002461/0.844, allocations: 0.5816 MB / 485.1 MB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03892/0.8829, allocations: 16.86 MB / 0.4902 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005064/0.8835, allocations: 87.2 kB / 0.4903 GB, free: 9.477 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002416/0.8859, allocations: 267.8 kB / 0.4905 GB, free: 9.215 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004951/0.8909, allocations: 2.647 MB / 0.4931 GB, free: 6.562 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03582/0.9267, allocations: 14.4 MB / 0.5072 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4762/1.403, allocations: 63.95 MB / 0.5696 GB, free: 97.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02222/1.425, allocations: 8.63 MB / 0.5781 GB, free: 94.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005395/1.431, allocations: 4.917 MB / 0.5829 GB, free: 91.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02308/1.454, allocations: 18.11 MB / 0.6005 GB, free: 78.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/1.454, allocations: 68.03 kB / 0.6006 GB, free: 78.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 7.254e-06/1.454, allocations: 2.031 kB / 0.6006 GB, free: 78.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.2528/1.707, allocations: 72.76 MB / 0.6717 GB, free: 6.004 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/1.707, allocations: 368.6 kB / 0.672 GB, free: 5.562 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01015/1.717, allocations: 6.426 MB / 0.6783 GB, free: 15.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001134/1.718, allocations: 85.7 kB / 0.6784 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004115/1.722, allocations: 4.839 MB / 0.6831 GB, free: 10.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002227/1.725, allocations: 1.36 MB / 0.6844 GB, free: 8.852 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003378/1.728, allocations: 1.838 MB / 0.6862 GB, free: 7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/1.728, allocations: 301.1 kB / 0.6865 GB, free: 6.703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007678/1.736, allocations: 5.663 MB / 0.692 GB, free: 1.031 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01251/1.748, allocations: 10.61 MB / 0.7024 GB, free: 3.988 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2619/2.01, allocations: 17.36 MB / 0.7194 GB, free: 144.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001769/2.01, allocations: 52.22 kB / 0.7194 GB, free: 144.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.04988/2.06, allocations: 21.96 MB / 0.7409 GB, free: 137.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/2.061, allocations: 81.72 kB / 0.7409 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002721/2.061, allocations: 170 kB / 0.7411 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02106/2.082, allocations: 6.88 MB / 0.7478 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00764/2.09, allocations: 2.066 MB / 0.7498 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04125/2.131, allocations: 36.42 MB / 0.7854 GB, free: 99.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009822/2.141, allocations: 0.7181 MB / 0.7861 GB, free: 99.04 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002112/2.143, allocations: 0.5077 MB / 0.7866 GB, free: 98.53 MB / 478.1 MB 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.007289/2.15, allocations: 3.422 MB / 0.7899 GB, free: 95.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001665/2.152, allocations: 0.5869 MB / 0.7905 GB, free: 94.88 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02971/2.182, allocations: 16.1 MB / 0.8062 GB, free: 78.71 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001255/2.182, allocations: 48 kB / 0.8063 GB, free: 78.66 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-05/2.182, allocations: 16 kB / 0.8063 GB, free: 78.64 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001102/2.182, allocations: 15.94 kB / 0.8063 GB, free: 78.63 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05333/2.235, allocations: 31.41 MB / 0.837 GB, free: 46.81 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.561e-05/2.235, allocations: 8.188 kB / 0.837 GB, free: 46.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/2.239, allocations: 0.6091 MB / 0.8376 GB, free: 46.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01859/2.257, allocations: 6.46 MB / 0.8439 GB, free: 39.72 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/2.259, allocations: 60 kB / 0.844 GB, free: 39.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.264/2.523, allocations: 34.63 MB / 0.8778 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/2.523, allocations: 3.875 kB / 0.8778 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0478/2.57, allocations: 23.54 MB / 0.9008 GB, free: 141.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001958/2.572, allocations: 0.624 MB / 0.9014 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001537/2.574, allocations: 65.81 kB / 0.9014 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004391/2.578, allocations: 427.7 kB / 0.9018 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001329/2.58, allocations: 246.9 kB / 0.9021 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003545/2.58, allocations: 94.67 kB / 0.9022 GB, free: 141.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006172/2.586, allocations: 4.111 MB / 0.9062 GB, free: 140 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.91e-07/2.586, allocations: 0 / 0.9062 GB, free: 140 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009541/2.596, allocations: 2.182 MB / 0.9083 GB, free: 139.7 MB / 478.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.03625/2.632, allocations: 24.35 MB / 0.9321 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02751/2.66, allocations: 19.45 MB / 0.9511 GB, free: 105.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/2.66, allocations: 0 / 0.9511 GB, free: 105.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008811/2.668, allocations: 6.559 MB / 0.9575 GB, free: 98.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005912/2.674, allocations: 0.9419 MB / 0.9584 GB, free: 97.99 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4073/3.082, allocations: 120.8 MB / 1.076 GB, free: 154.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01059/3.092, allocations: 5.268 MB / 1.082 GB, free: 153.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008437/3.101, allocations: 3.028 MB / 1.085 GB, free: 153.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006091/3.107, allocations: 3.387 MB / 1.088 GB, free: 151.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/3.107, allocations: 2.688 kB / 1.088 GB, free: 151.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4974/3.604, allocations: 171.7 MB / 1.255 GB, free: 152.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/19.02, allocations: 11.17 kB / 1.256 GB, free: 152.5 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches