Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001176/0.001176, allocations: 114.1 kB / 17.07 MB, free: 6.016 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.001213/0.001213, allocations: 191 kB / 18 MB, free: 5.098 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009752/0.0009753, allocations: 51.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3059, allocations: 49.44 MB / 400.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01533/0.3213, allocations: 15.02 MB / 415.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.3319, allocations: 4.818 MB / 420.1 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00283/0.3347, allocations: 91.75 kB / 420.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005923/0.3407, allocations: 3.169 MB / 423.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.348, allocations: 2.623 MB / 426 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.3504, allocations: 0.9905 MB / 426.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009604/0.36, allocations: 6.972 MB / 433.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005521/0.3655, allocations: 4.337 MB / 438.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003875/0.3694, allocations: 2.223 MB / 440.5 MB, free: 352 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004626/0.3741, allocations: 3.244 MB / 443.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001405/0.3755, allocations: 484 kB / 444.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003205/0.3787, allocations: 1.502 MB / 445.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003684/0.3825, allocations: 2.883 MB / 448.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006064/0.3885, allocations: 3.316 MB / 451.9 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.4039, allocations: 10.62 MB / 462.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4039, allocations: 0 / 462.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.404, allocations: 0 / 462.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004711/0.4044, allocations: 0 / 462.5 MB, free: 10.22 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02198/0.4264, allocations: 7.669 MB / 470.2 MB, free: 2.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.4265, allocations: 12.02 kB / 470.2 MB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003485/0.43, allocations: 1.137 MB / 471.3 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04411/0.4741, allocations: 7.555 MB / 478.9 MB, free: 9.727 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01265/0.4868, allocations: 4.874 MB / 483.8 MB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004082/0.4873, allocations: 324.1 kB / 484.1 MB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002369/0.4896, allocations: 427.7 kB / 484.5 MB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03101/0.5207, allocations: 15.61 MB / 0.4884 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002651/0.521, allocations: 63.47 kB / 0.4884 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001662/0.5227, allocations: 203.8 kB / 0.4886 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006032/0.5287, allocations: 3.22 MB / 0.4918 GB, free: 32 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02907/0.5578, allocations: 13.9 MB / 0.5054 GB, free: 2.102 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3266/0.8845, allocations: 57.2 MB / 0.5612 GB, free: 90.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.8969, allocations: 6.492 MB / 0.5676 GB, free: 88.31 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003838/0.9008, allocations: 3.561 MB / 0.571 GB, free: 86.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01977/0.9206, allocations: 14.32 MB / 0.585 GB, free: 79.06 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.9207, allocations: 61.97 kB / 0.5851 GB, free: 79.01 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 7.103e-06/0.9207, allocations: 1.969 kB / 0.5851 GB, free: 79.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1357/1.056, allocations: 41.96 MB / 0.6261 GB, free: 38.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/1.057, allocations: 213.5 kB / 0.6263 GB, free: 38.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006463/1.063, allocations: 5.5 MB / 0.6316 GB, free: 32.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007574/1.064, allocations: 73.7 kB / 0.6317 GB, free: 32.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/1.066, allocations: 4.596 MB / 0.6362 GB, free: 28.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001624/1.068, allocations: 1.296 MB / 0.6375 GB, free: 27.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/1.07, allocations: 1.796 MB / 0.6392 GB, free: 25.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.865e-05/1.07, allocations: 305.1 kB / 0.6395 GB, free: 25.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005179/1.076, allocations: 4.62 MB / 0.644 GB, free: 20.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007125/1.083, allocations: 9.587 MB / 0.6534 GB, free: 8.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.016/1.099, allocations: 15.26 MB / 0.6683 GB, free: 6.809 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001481/1.099, allocations: 55.94 kB / 0.6683 GB, free: 6.754 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04568/1.145, allocations: 18.98 MB / 0.6869 GB, free: 3.723 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.145, allocations: 82.64 kB / 0.6869 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002302/1.145, allocations: 179.9 kB / 0.6871 GB, free: 3.469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02343/1.168, allocations: 5.773 MB / 0.6928 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007651/1.176, allocations: 2.043 MB / 0.6948 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03555/1.212, allocations: 25.66 MB / 0.7198 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007377/1.219, allocations: 0.5462 MB / 0.7203 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/1.221, allocations: 0.5023 MB / 0.7208 GB, free: 0.6562 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1057): * Single equations (assignments): 1049 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006363/1.227, allocations: 3.091 MB / 0.7239 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001459/1.229, allocations: 0.52 MB / 0.7244 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03352/1.262, allocations: 12.6 MB / 0.7367 GB, free: 372 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-05/1.262, allocations: 55.98 kB / 0.7367 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.712e-05/1.262, allocations: 12 kB / 0.7367 GB, free: 304 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.969e-05/1.262, allocations: 19.94 kB / 0.7367 GB, free: 284 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3148/1.577, allocations: 24.18 MB / 0.7604 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.835e-05/1.577, allocations: 3.906 kB / 0.7604 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/1.58, allocations: 0.577 MB / 0.7609 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01887/1.599, allocations: 4.818 MB / 0.7656 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007879/1.6, allocations: 59.55 kB / 0.7657 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02288/1.623, allocations: 20.91 MB / 0.7861 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.623, allocations: 4 kB / 0.7861 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0332/1.656, allocations: 17.02 MB / 0.8027 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.658, allocations: 0.5623 MB / 0.8033 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00183/1.66, allocations: 56.69 kB / 0.8033 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004018/1.664, allocations: 255.6 kB / 0.8036 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/1.665, allocations: 189.5 kB / 0.8038 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005726/1.666, allocations: 85.33 kB / 0.8038 GB, free: 142 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006179/1.672, allocations: 3.428 MB / 0.8072 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/1.672, allocations: 0 / 0.8072 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01028/1.682, allocations: 1.703 MB / 0.8089 GB, free: 136.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03246/1.715, allocations: 17.7 MB / 0.8261 GB, free: 119.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01356/1.728, allocations: 10.62 MB / 0.8365 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.728, allocations: 4 kB / 0.8365 GB, free: 108.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004958/1.733, allocations: 4.021 MB / 0.8404 GB, free: 104.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004278/1.737, allocations: 0.6483 MB / 0.8411 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1277/1.865, allocations: 86.16 MB / 0.9252 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2125/2.078, allocations: 4.606 MB / 0.9297 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007778/2.086, allocations: 2.985 MB / 0.9326 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004724/2.09, allocations: 2.915 MB / 0.9355 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.122e-06/2.09, allocations: 0 / 0.9355 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1839/2.274, allocations: 125.4 MB / 1.058 GB, free: 75.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.45/41.73, allocations: 7.281 kB / 1.058 GB, free: 75.67 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_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_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches