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.00115/0.00115, allocations: 109.6 kB / 16.63 MB, free: 6.816 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.001061/0.001061, allocations: 193.9 kB / 17.55 MB, free: 5.949 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.258/1.258, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 53.25 kB / 300.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.08972, allocations: 49.44 MB / 349.7 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.2432/0.3329, allocations: 81.06 MB / 430.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03702/0.37, allocations: 16.42 MB / 447.2 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01682/0.3868, allocations: 375 kB / 447.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01018/0.397, allocations: 6.062 MB / 453.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006709/0.4038, allocations: 2.652 MB / 456.2 MB, free: 10 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004498/0.4083, allocations: 2.176 MB / 458.4 MB, free: 7.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01159/0.4199, allocations: 10.25 MB / 468.7 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008508/0.4285, allocations: 8.852 MB / 477.5 MB, free: 4.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003869/0.4324, allocations: 3.268 MB / 480.8 MB, free: 1.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004929/0.4373, allocations: 4.616 MB / 485.4 MB, free: 12.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.4383, allocations: 0.7148 MB / 486.1 MB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002928/0.4413, allocations: 1.931 MB / 488.1 MB, free: 10.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002988/0.4443, allocations: 3.839 MB / 491.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004131/0.4484, allocations: 4.45 MB / 496.3 MB, free: 1.746 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.4599, allocations: 13.64 MB / 0.498 GB, free: 4.066 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.4599, allocations: 0 / 0.498 GB, free: 4.066 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.46, allocations: 3.938 kB / 0.498 GB, free: 4.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002413/0.4602, allocations: 0 / 0.498 GB, free: 4.062 MB / 414.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.02129/0.4815, allocations: 9.429 MB / 0.5072 GB, free: 10.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4816, allocations: 8.031 kB / 0.5073 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/0.4831, allocations: 1.139 MB / 0.5084 GB, free: 9.387 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2893/0.7724, allocations: 23.23 MB / 0.5311 GB, free: 2.117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3003/1.073, allocations: 7.834 MB / 0.5387 GB, free: 147.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/1.073, allocations: 437.7 kB / 0.5391 GB, free: 147.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00156/1.075, allocations: 0.5792 MB / 0.5397 GB, free: 147.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02685/1.102, allocations: 16.85 MB / 0.5561 GB, free: 140.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001938/1.102, allocations: 81.48 kB / 0.5562 GB, free: 140.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006272/1.102, allocations: 265.6 kB / 0.5565 GB, free: 140 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003724/1.106, allocations: 2.661 MB / 0.5591 GB, free: 139.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02249/1.129, allocations: 14.4 MB / 0.5731 GB, free: 126.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05599/1.185, allocations: 63.96 MB / 0.6356 GB, free: 61.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01837/1.203, allocations: 8.634 MB / 0.644 GB, free: 52.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003888/1.207, allocations: 4.923 MB / 0.6488 GB, free: 47.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01857/1.226, allocations: 18.11 MB / 0.6665 GB, free: 29.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/1.226, allocations: 64.5 kB / 0.6666 GB, free: 29.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.27e-06/1.226, allocations: 0 / 0.6666 GB, free: 29.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.3789/1.605, allocations: 72.77 MB / 0.7377 GB, free: 123.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/1.605, allocations: 372.6 kB / 0.738 GB, free: 123.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006535/1.611, allocations: 6.42 MB / 0.7443 GB, free: 116.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006083/1.612, allocations: 81.7 kB / 0.7444 GB, free: 116.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/1.614, allocations: 4.844 MB / 0.7491 GB, free: 111.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001055/1.615, allocations: 1.367 MB / 0.7504 GB, free: 110.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002201/1.617, allocations: 1.832 MB / 0.7522 GB, free: 108.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.739e-05/1.617, allocations: 309.1 kB / 0.7525 GB, free: 108.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005495/1.622, allocations: 5.659 MB / 0.758 GB, free: 102.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0068/1.629, allocations: 10.61 MB / 0.7684 GB, free: 89.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/1.643, allocations: 17.36 MB / 0.7854 GB, free: 69.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.834e-05/1.643, allocations: 48 kB / 0.7854 GB, free: 69.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03297/1.676, allocations: 21.97 MB / 0.8068 GB, free: 47.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.836e-05/1.676, allocations: 79.94 kB / 0.8069 GB, free: 47.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.894e-05/1.676, allocations: 172 kB / 0.8071 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01766/1.694, allocations: 6.872 MB / 0.8138 GB, free: 40.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005772/1.7, allocations: 2.078 MB / 0.8158 GB, free: 38.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03814/1.738, allocations: 36.41 MB / 0.8514 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007423/1.745, allocations: 0.7136 MB / 0.8521 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000706/1.746, allocations: 0.5155 MB / 0.8526 GB, free: 0.5742 MB / 446.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.004605/1.751, allocations: 3.411 MB / 0.8559 GB, free: 13.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001107/1.752, allocations: 0.5823 MB / 0.8565 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1987/1.951, allocations: 16.1 MB / 0.8722 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.18e-05/1.951, allocations: 54.75 kB / 0.8723 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.412e-05/1.951, allocations: 16 kB / 0.8723 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.749e-05/1.951, allocations: 27.03 kB / 0.8723 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04555/1.996, allocations: 31.41 MB / 0.903 GB, free: 124.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.536e-05/1.996, allocations: 3.812 kB / 0.903 GB, free: 124.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/2, allocations: 0.607 MB / 0.9036 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0177/2.017, allocations: 6.45 MB / 0.9099 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000958/2.018, allocations: 60 kB / 0.9099 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03777/2.056, allocations: 34.64 MB / 0.9437 GB, free: 83.94 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/2.056, allocations: 15.84 kB / 0.9438 GB, free: 83.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03491/2.091, allocations: 23.53 MB / 0.9667 GB, free: 60.64 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/2.093, allocations: 0.6318 MB / 0.9674 GB, free: 60.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001894/2.095, allocations: 63.83 kB / 0.9674 GB, free: 60.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004586/2.099, allocations: 428.4 kB / 0.9678 GB, free: 59.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001426/2.101, allocations: 250.6 kB / 0.9681 GB, free: 59.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005883/2.102, allocations: 95.98 kB / 0.9682 GB, free: 59.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006585/2.108, allocations: 4.11 MB / 0.9722 GB, free: 55.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/2.108, allocations: 4 kB / 0.9722 GB, free: 55.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009438/2.118, allocations: 2.191 MB / 0.9743 GB, free: 53.21 MB / 462.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.03631/2.154, allocations: 24.32 MB / 0.9981 GB, free: 28.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02969/2.184, allocations: 19.45 MB / 1.017 GB, free: 9.531 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/2.184, allocations: 0 / 1.017 GB, free: 9.531 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01013/2.194, allocations: 6.571 MB / 1.023 GB, free: 2.926 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007283/2.201, allocations: 0.9351 MB / 1.024 GB, free: 2.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.325/2.526, allocations: 124.1 MB / 1.146 GB, free: 38.39 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006229/2.532, allocations: 5.267 MB / 1.151 GB, free: 33.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006908/2.539, allocations: 3.028 MB / 1.154 GB, free: 30.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005181/2.545, allocations: 3.393 MB / 1.157 GB, free: 26.68 MB / 462.1 MB Notification: Performance of SimCode: time 1.282e-06/2.545, allocations: 0 / 1.157 GB, free: 26.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4537/2.998, allocations: 171.5 MB / 1.324 GB, free: 53.35 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/2.999, allocations: 251.2 kB / 1.325 GB, free: 53.09 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.541/8.539, allocations: 0 / 1.325 GB, free: 53.09 MB / 478.1 MB (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