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.001163/0.001163, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001209/0.001209, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.286/1.286, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 47.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3123, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.01969/0.332, allocations: 18.17 MB / 418.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01465/0.3467, allocations: 6.052 MB / 424.5 MB, free: 484 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004451/0.3512, allocations: 143.6 kB / 424.6 MB, free: 340 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01179/0.3631, allocations: 6.27 MB / 430.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008332/0.3714, allocations: 2.926 MB / 433.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005452/0.3769, allocations: 2.273 MB / 436.1 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01446/0.3914, allocations: 9.494 MB / 445.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0129/0.4043, allocations: 8.423 MB / 454 MB, free: 2.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006393/0.4108, allocations: 3.206 MB / 457.2 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006646/0.4174, allocations: 4.172 MB / 461.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002596/0.4201, allocations: 0.7148 MB / 462.1 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004661/0.4248, allocations: 1.912 MB / 464 MB, free: 8.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005453/0.4302, allocations: 3.823 MB / 467.8 MB, free: 4.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007988/0.4383, allocations: 4.423 MB / 472.2 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01876/0.4571, allocations: 13.93 MB / 486.2 MB, free: 2.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4571, allocations: 0 / 486.2 MB, free: 2.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4571, allocations: 0 / 486.2 MB, free: 2.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000509/0.4576, allocations: 0 / 486.2 MB, free: 2.516 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.03208/0.4897, allocations: 9.66 MB / 495.8 MB, free: 8.754 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4898, allocations: 8.031 kB / 495.8 MB, free: 8.746 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004313/0.4941, allocations: 1.135 MB / 497 MB, free: 7.602 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3258/0.82, allocations: 23.28 MB / 0.5081 GB, free: 300 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02242/0.8424, allocations: 8 MB / 0.5159 GB, free: 8.219 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005168/0.843, allocations: 435.7 kB / 0.5163 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002731/0.8457, allocations: 0.5855 MB / 0.5169 GB, free: 7.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03804/0.8838, allocations: 16.86 MB / 0.5333 GB, free: 5.398 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004208/0.8843, allocations: 79.41 kB / 0.5334 GB, free: 5.32 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/0.8865, allocations: 267.8 kB / 0.5337 GB, free: 5.059 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004854/0.8913, allocations: 2.658 MB / 0.5362 GB, free: 2.398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4566/1.348, allocations: 14.39 MB / 0.5503 GB, free: 120.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06936/1.417, allocations: 63.81 MB / 0.6126 GB, free: 58.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02028/1.438, allocations: 8.618 MB / 0.621 GB, free: 49.59 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004569/1.442, allocations: 4.915 MB / 0.6258 GB, free: 44.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02396/1.466, allocations: 18.14 MB / 0.6435 GB, free: 26.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/1.466, allocations: 62.59 kB / 0.6436 GB, free: 26.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 6.883e-06/1.466, allocations: 0 / 0.6436 GB, free: 26.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=374): time 0.2467/1.713, allocations: 73.15 MB / 0.715 GB, free: 1.637 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001889/1.713, allocations: 380.5 kB / 0.7154 GB, free: 1.184 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009841/1.723, allocations: 6.442 MB / 0.7217 GB, free: 10.85 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001097/1.724, allocations: 85.7 kB / 0.7218 GB, free: 10.76 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003562/1.728, allocations: 5.024 MB / 0.7267 GB, free: 5.777 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002126/1.73, allocations: 1.426 MB / 0.7281 GB, free: 4.34 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00319/1.733, allocations: 1.849 MB / 0.7299 GB, free: 2.477 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001002/1.733, allocations: 301.1 kB / 0.7302 GB, free: 2.18 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2327/1.966, allocations: 5.66 MB / 0.7357 GB, free: 174.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01134/1.977, allocations: 10.61 MB / 0.7461 GB, free: 165.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01724/1.995, allocations: 17.36 MB / 0.763 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/1.995, allocations: 50.06 kB / 0.7631 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.03913/2.034, allocations: 21.99 MB / 0.7845 GB, free: 139.6 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001375/2.034, allocations: 85.81 kB / 0.7846 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001814/2.034, allocations: 172 kB / 0.7848 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01939/2.054, allocations: 6.852 MB / 0.7915 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00711/2.061, allocations: 2.07 MB / 0.7935 GB, free: 130.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03935/2.1, allocations: 36.42 MB / 0.8291 GB, free: 93.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008589/2.109, allocations: 0.7192 MB / 0.8298 GB, free: 93.13 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001522/2.11, allocations: 0.5116 MB / 0.8303 GB, free: 92.62 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.005476/2.116, allocations: 3.42 MB / 0.8336 GB, free: 89.29 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/2.117, allocations: 0.6131 MB / 0.8342 GB, free: 89.02 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02729/2.145, allocations: 16.11 MB / 0.8499 GB, free: 72.84 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.391e-05/2.145, allocations: 44 kB / 0.85 GB, free: 72.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.493e-05/2.145, allocations: 16 kB / 0.85 GB, free: 72.79 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.82e-05/2.145, allocations: 15.94 kB / 0.85 GB, free: 72.77 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0493/2.194, allocations: 31.29 MB / 0.8806 GB, free: 41.19 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.384e-05/2.194, allocations: 3.938 kB / 0.8806 GB, free: 41.18 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003222/2.198, allocations: 0.6125 MB / 0.8812 GB, free: 40.57 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01789/2.216, allocations: 6.434 MB / 0.8875 GB, free: 34.12 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000826/2.216, allocations: 64 kB / 0.8875 GB, free: 34.05 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03761/2.254, allocations: 34.64 MB / 0.9213 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.254, allocations: 8 kB / 0.9213 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3089/2.563, allocations: 23.57 MB / 0.9444 GB, free: 170 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002558/2.566, allocations: 0.6557 MB / 0.945 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002727/2.568, allocations: 68.5 kB / 0.9451 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005937/2.574, allocations: 433.5 kB / 0.9455 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001574/2.576, allocations: 247.1 kB / 0.9457 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007463/2.577, allocations: 88.25 kB / 0.9458 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008717/2.585, allocations: 4.114 MB / 0.9498 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.22e-07/2.586, allocations: 0 / 0.9498 GB, free: 168.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01314/2.599, allocations: 2.201 MB / 0.952 GB, free: 168.1 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.04097/2.64, allocations: 24.35 MB / 0.9758 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02143/2.661, allocations: 14.3 MB / 0.9897 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.503e-05/2.661, allocations: 0 / 0.9897 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01002/2.671, allocations: 6.574 MB / 0.9961 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009363/2.681, allocations: 0.9445 MB / 0.9971 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1576/2.838, allocations: 102.9 MB / 1.098 GB, free: 19.93 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005564/2.844, allocations: 5.267 MB / 1.103 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006419/2.85, allocations: 3.029 MB / 1.106 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00575/2.856, allocations: 3.397 MB / 1.109 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of SimCode: time 1.553e-06/2.856, allocations: 6.016 kB / 1.109 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4348/3.291, allocations: 166.6 MB / 1.272 GB, free: 63.33 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.5/29.79, allocations: 15.86 kB / 1.272 GB, free: 63.32 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches