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.001645/0.001645, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001854/0.001854, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.04/2.04, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 47.02 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1444, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.03357/0.178, allocations: 18.18 MB / 368.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3046/0.4826, allocations: 6.032 MB / 374.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007236/0.4899, allocations: 141.2 kB / 374.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01963/0.5096, allocations: 6.285 MB / 380.8 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01271/0.5224, allocations: 2.839 MB / 383.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009419/0.5318, allocations: 2.278 MB / 385.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02275/0.5546, allocations: 9.505 MB / 395.4 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01961/0.5743, allocations: 8.422 MB / 403.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01007/0.5844, allocations: 3.18 MB / 407 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008943/0.5934, allocations: 4.158 MB / 411.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003633/0.5971, allocations: 0.7109 MB / 411.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007392/0.6045, allocations: 1.911 MB / 413.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007002/0.6116, allocations: 3.782 MB / 417.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0116/0.6232, allocations: 4.411 MB / 422 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02296/0.6462, allocations: 13.59 MB / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.6463, allocations: 0 / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6463, allocations: 0 / 435.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006206/0.647, allocations: 0 / 435.6 MB, free: 12.76 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.04194/0.6889, allocations: 9.423 MB / 445 MB, free: 3.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.02e-05/0.689, allocations: 8.031 kB / 445 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005182/0.6942, allocations: 1.142 MB / 446.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4625/1.157, allocations: 23.23 MB / 469.4 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03467/1.191, allocations: 7.847 MB / 477.2 MB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007478/1.192, allocations: 431.8 kB / 477.7 MB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003911/1.196, allocations: 0.5815 MB / 478.2 MB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06418/1.26, allocations: 16.85 MB / 495.1 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006117/1.261, allocations: 79.27 kB / 495.2 MB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002577/1.264, allocations: 272.2 kB / 495.4 MB, free: 300 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007062/1.271, allocations: 2.654 MB / 498.1 MB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03567/1.306, allocations: 14.4 MB / 0.5005 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6725/1.979, allocations: 63.95 MB / 0.5629 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02783/2.007, allocations: 8.638 MB / 0.5714 GB, free: 100.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00925/2.016, allocations: 4.913 MB / 0.5762 GB, free: 98.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04665/2.063, allocations: 18.11 MB / 0.5939 GB, free: 88.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.473e-05/2.063, allocations: 83.67 kB / 0.5939 GB, free: 88.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 1.314e-05/2.063, allocations: 0 / 0.5939 GB, free: 88.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=374): time 0.4179/2.481, allocations: 72.75 MB / 0.665 GB, free: 18.17 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/2.481, allocations: 388.1 kB / 0.6653 GB, free: 17.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02/2.501, allocations: 6.422 MB / 0.6716 GB, free: 11.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001525/2.503, allocations: 81.7 kB / 0.6717 GB, free: 11.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005112/2.508, allocations: 4.842 MB / 0.6764 GB, free: 6.359 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003063/2.511, allocations: 1.366 MB / 0.6778 GB, free: 5.004 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008505/2.52, allocations: 1.828 MB / 0.6795 GB, free: 3.164 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/2.52, allocations: 309.1 kB / 0.6798 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01583/2.536, allocations: 5.659 MB / 0.6854 GB, free: 13.19 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0231/2.559, allocations: 10.62 MB / 0.6957 GB, free: 176 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3226/2.882, allocations: 17.35 MB / 0.7127 GB, free: 154.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002531/2.882, allocations: 49.25 kB / 0.7127 GB, free: 154.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.06846/2.95, allocations: 21.97 MB / 0.7342 GB, free: 148.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002787/2.951, allocations: 81.56 kB / 0.7343 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003947/2.951, allocations: 175.2 kB / 0.7344 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03392/2.985, allocations: 6.863 MB / 0.7411 GB, free: 147.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01394/2.999, allocations: 2.071 MB / 0.7431 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07138/3.07, allocations: 36.43 MB / 0.7787 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01783/3.088, allocations: 0.718 MB / 0.7794 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003032/3.091, allocations: 0.5115 MB / 0.7799 GB, free: 115.9 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.01218/3.104, allocations: 3.419 MB / 0.7833 GB, free: 112.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003019/3.107, allocations: 0.5892 MB / 0.7838 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0377/3.144, allocations: 16.1 MB / 0.7996 GB, free: 96.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001167/3.145, allocations: 51.98 kB / 0.7996 GB, free: 96.09 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.977e-05/3.145, allocations: 16 kB / 0.7996 GB, free: 96.08 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001156/3.145, allocations: 23.88 kB / 0.7996 GB, free: 96.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09206/3.237, allocations: 31.41 MB / 0.8303 GB, free: 64.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.664e-05/3.237, allocations: 8.188 kB / 0.8303 GB, free: 64.29 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003595/3.241, allocations: 0.6045 MB / 0.8309 GB, free: 63.69 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02555/3.266, allocations: 6.456 MB / 0.8372 GB, free: 57.22 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001248/3.268, allocations: 63.98 kB / 0.8373 GB, free: 57.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06277/3.33, allocations: 34.63 MB / 0.8711 GB, free: 22.11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.257e-05/3.33, allocations: 7.938 kB / 0.8711 GB, free: 22.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3841/3.715, allocations: 23.54 MB / 0.8941 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003068/3.718, allocations: 0.6232 MB / 0.8947 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00307/3.721, allocations: 63.72 kB / 0.8948 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007166/3.728, allocations: 427.1 kB / 0.8952 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001945/3.73, allocations: 247.2 kB / 0.8954 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008777/3.731, allocations: 96.09 kB / 0.8955 GB, free: 148.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009627/3.74, allocations: 4.117 MB / 0.8995 GB, free: 147.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.91e-07/3.741, allocations: 3.719 kB / 0.8995 GB, free: 147.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01392/3.754, allocations: 2.189 MB / 0.9017 GB, free: 147 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.0768/3.831, allocations: 24.32 MB / 0.9254 GB, free: 137 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.05587/3.887, allocations: 19.46 MB / 0.9444 GB, free: 117.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.929e-05/3.887, allocations: 0 / 0.9444 GB, free: 117.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0193/3.907, allocations: 6.567 MB / 0.9508 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01551/3.922, allocations: 0.9445 MB / 0.9517 GB, free: 110.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7336/4.656, allocations: 120.9 MB / 1.07 GB, free: 145.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01976/4.676, allocations: 5.27 MB / 1.075 GB, free: 144.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01654/4.692, allocations: 3.028 MB / 1.078 GB, free: 144 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01048/4.703, allocations: 3.393 MB / 1.081 GB, free: 141.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.863e-06/4.703, allocations: 0 / 1.081 GB, free: 141.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8451/5.548, allocations: 171.7 MB / 1.249 GB, free: 144.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 26.17/31.71, allocations: 3.938 kB / 1.249 GB, free: 144.7 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 & 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