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.001616/0.001616, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.00171/0.00171, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.514/1.514, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001738, allocations: 47.91 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3071, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01749/0.3246, allocations: 15.03 MB / 415.3 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01163/0.3363, allocations: 4.815 MB / 420.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003374/0.3397, allocations: 91.75 kB / 420.2 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007075/0.3468, allocations: 3.173 MB / 423.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007842/0.3547, allocations: 2.544 MB / 425.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.3574, allocations: 0.9866 MB / 426.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.3686, allocations: 6.977 MB / 433.9 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007295/0.3759, allocations: 4.329 MB / 438.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004608/0.3806, allocations: 2.219 MB / 440.4 MB, free: 476 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005592/0.3862, allocations: 3.248 MB / 443.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001915/0.3881, allocations: 484 kB / 444.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004158/0.3923, allocations: 1.494 MB / 445.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004597/0.3969, allocations: 2.852 MB / 448.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006485/0.4034, allocations: 3.312 MB / 451.8 MB, free: 5.047 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01789/0.4213, allocations: 10.63 MB / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.4214, allocations: 0 / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4214, allocations: 4 kB / 462.4 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004408/0.4219, allocations: 0 / 462.4 MB, free: 10.38 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.02229/0.4442, allocations: 7.658 MB / 470.1 MB, free: 2.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.4442, allocations: 8.031 kB / 470.1 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003477/0.4477, allocations: 1.141 MB / 471.2 MB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04733/0.4951, allocations: 7.547 MB / 478.8 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01262/0.5077, allocations: 4.885 MB / 483.7 MB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003927/0.5082, allocations: 320.2 kB / 484 MB, free: 4.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002174/0.5104, allocations: 435.7 kB / 484.4 MB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03486/0.5453, allocations: 15.6 MB / 500 MB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000304/0.5456, allocations: 67.47 kB / 0.4883 GB, free: 3.609 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001789/0.5474, allocations: 203.8 kB / 0.4885 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00601/0.5534, allocations: 3.216 MB / 0.4917 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03124/0.5847, allocations: 13.9 MB / 0.5053 GB, free: 2.258 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3075/0.8923, allocations: 57.19 MB / 0.5611 GB, free: 91.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01228/0.9046, allocations: 6.483 MB / 0.5674 GB, free: 90.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00389/0.9085, allocations: 3.57 MB / 0.5709 GB, free: 88.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0183/0.9269, allocations: 14.33 MB / 0.5849 GB, free: 80.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.9269, allocations: 62.16 kB / 0.585 GB, free: 80.76 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 5.942e-06/0.927, allocations: 0 / 0.585 GB, free: 80.76 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.1355/1.062, allocations: 41.94 MB / 0.6259 GB, free: 40.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/1.063, allocations: 217.4 kB / 0.6261 GB, free: 39.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006316/1.069, allocations: 5.512 MB / 0.6315 GB, free: 34.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007899/1.07, allocations: 77.22 kB / 0.6316 GB, free: 34.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/1.072, allocations: 4.59 MB / 0.6361 GB, free: 29.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001401/1.073, allocations: 1.303 MB / 0.6374 GB, free: 28.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002236/1.076, allocations: 1.789 MB / 0.6391 GB, free: 26.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.054e-05/1.076, allocations: 305.1 kB / 0.6394 GB, free: 26.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005225/1.081, allocations: 4.616 MB / 0.6439 GB, free: 21.74 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007846/1.089, allocations: 9.596 MB / 0.6533 GB, free: 9.766 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01782/1.107, allocations: 15.25 MB / 0.6682 GB, free: 8.074 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/1.107, allocations: 52 kB / 0.6682 GB, free: 8.023 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.05023/1.157, allocations: 18.98 MB / 0.6867 GB, free: 4.992 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00025/1.157, allocations: 80.97 kB / 0.6868 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003708/1.158, allocations: 172 kB / 0.687 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02425/1.182, allocations: 5.777 MB / 0.6926 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007695/1.19, allocations: 2.051 MB / 0.6946 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03991/1.23, allocations: 25.65 MB / 0.7197 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007933/1.238, allocations: 0.5424 MB / 0.7202 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002173/1.24, allocations: 0.5039 MB / 0.7207 GB, free: 1.93 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.008322/1.248, allocations: 3.099 MB / 0.7237 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001829/1.25, allocations: 0.5238 MB / 0.7242 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0362/1.286, allocations: 12.6 MB / 0.7365 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/1.286, allocations: 55.22 kB / 0.7366 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.654e-05/1.286, allocations: 8 kB / 0.7366 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.013e-05/1.287, allocations: 19.94 kB / 0.7366 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2708/1.557, allocations: 24.19 MB / 0.7602 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.185e-05/1.557, allocations: 9.344 kB / 0.7603 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002974/1.56, allocations: 0.5732 MB / 0.7608 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01816/1.579, allocations: 4.81 MB / 0.7655 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008383/1.579, allocations: 55.38 kB / 0.7656 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02209/1.602, allocations: 20.92 MB / 0.786 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.602, allocations: 14.69 kB / 0.786 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03114/1.633, allocations: 17.01 MB / 0.8026 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/1.634, allocations: 0.5488 MB / 0.8032 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001662/1.636, allocations: 67.3 kB / 0.8032 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004017/1.64, allocations: 255.3 kB / 0.8035 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001192/1.641, allocations: 197.4 kB / 0.8036 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006562/1.642, allocations: 84 kB / 0.8037 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00631/1.648, allocations: 3.42 MB / 0.8071 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/1.648, allocations: 0 / 0.8071 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008219/1.656, allocations: 1.713 MB / 0.8087 GB, free: 139.7 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.03167/1.688, allocations: 17.68 MB / 0.826 GB, free: 122 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01518/1.703, allocations: 10.64 MB / 0.8364 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.703, allocations: 0 / 0.8364 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005814/1.709, allocations: 4.014 MB / 0.8403 GB, free: 107.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006446/1.716, allocations: 0.649 MB / 0.841 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1334/1.849, allocations: 86.15 MB / 0.9251 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2372/2.086, allocations: 4.62 MB / 0.9296 GB, free: 188.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00931/2.096, allocations: 2.984 MB / 0.9325 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006756/2.102, allocations: 2.919 MB / 0.9354 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/2.102, allocations: 0 / 0.9354 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1744/2.277, allocations: 125.4 MB / 1.058 GB, free: 79.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.79/42.06, allocations: 12.48 kB / 1.058 GB, free: 79.89 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