Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.001746/0.001747, allocations: 107.5 kB / 16.92 MB, free: 6.332 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.001738/0.001738, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.179/2.179, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 43.92 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1682, allocations: 49.45 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.03447/0.2027, allocations: 15.91 MB / 366.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3573/0.5601, allocations: 5.113 MB / 371.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008556/0.5688, allocations: 112.4 kB / 371.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01627/0.5852, allocations: 4.435 MB / 375.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01336/0.5987, allocations: 2.533 MB / 378.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005582/0.6043, allocations: 1.153 MB / 379.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02255/0.6269, allocations: 7.962 MB / 387.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01642/0.6434, allocations: 5.325 MB / 392.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008227/0.6517, allocations: 2.451 MB / 395.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009003/0.6608, allocations: 3.373 MB / 398.5 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003246/0.6641, allocations: 0.5039 MB / 399 MB, free: 0 / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007879/0.672, allocations: 1.496 MB / 400.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007209/0.6793, allocations: 2.96 MB / 403.5 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01184/0.6912, allocations: 3.436 MB / 406.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02135/0.7126, allocations: 10.27 MB / 417.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.211e-05/0.7127, allocations: 0 / 417.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.7127, allocations: 0 / 417.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004393/0.7132, allocations: 0 / 417.2 MB, free: 14.12 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.03284/0.746, allocations: 7.87 MB / 425.1 MB, free: 6.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.961e-05/0.7461, allocations: 12.03 kB / 425.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005027/0.7512, allocations: 1.082 MB / 426.2 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07566/0.8269, allocations: 8.4 MB / 434.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02008/0.847, allocations: 5.73 MB / 440.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006363/0.8477, allocations: 344.2 kB / 440.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003757/0.8515, allocations: 466.5 kB / 441.1 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0464/0.8979, allocations: 14.47 MB / 455.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004842/0.8984, allocations: 79.27 kB / 455.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001818/0.9003, allocations: 213.5 kB / 455.8 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006738/0.907, allocations: 2.833 MB / 458.7 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0319/0.939, allocations: 13.01 MB / 471.7 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1501/1.089, allocations: 58.3 MB / 0.5175 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03893/1.128, allocations: 7.69 MB / 0.5251 GB, free: 3.676 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3218/1.45, allocations: 5.005 MB / 0.5299 GB, free: 144.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04144/1.491, allocations: 12.68 MB / 0.5423 GB, free: 140 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.357e-05/1.492, allocations: 72.39 kB / 0.5424 GB, free: 140 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 9.558e-06/1.492, allocations: 3.75 kB / 0.5424 GB, free: 140 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 3.246/4.738, allocations: 411.2 MB / 0.9439 GB, free: 70.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/4.738, allocations: 270.6 kB / 0.9442 GB, free: 70.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/4.748, allocations: 5.489 MB / 0.9495 GB, free: 65.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002293/4.751, allocations: 114.5 kB / 0.9496 GB, free: 65.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003269/4.754, allocations: 4.009 MB / 0.9536 GB, free: 61.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004699/4.759, allocations: 2.003 MB / 0.9555 GB, free: 59.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007075/4.766, allocations: 2.072 MB / 0.9575 GB, free: 57.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/4.766, allocations: 302.4 kB / 0.9578 GB, free: 57.47 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01551/4.782, allocations: 10.88 MB / 0.9685 GB, free: 46.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01975/4.801, allocations: 14.99 MB / 0.9831 GB, free: 29.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04092/4.842, allocations: 27.12 MB / 1.01 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002091/4.843, allocations: 40 kB / 1.01 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.7898/5.632, allocations: 140.4 MB / 1.147 GB, free: 38.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002688/5.633, allocations: 70.09 kB / 1.147 GB, free: 38.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003488/5.633, allocations: 136 kB / 1.147 GB, free: 38.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4372/6.07, allocations: 34.61 MB / 1.181 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009987/6.08, allocations: 1.479 MB / 1.182 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7916/6.872, allocations: 203.2 MB / 1.381 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02158/6.894, allocations: 1.707 MB / 1.382 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004653/6.898, allocations: 0.5252 MB / 1.383 GB, free: 109.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (783): * Single equations (assignments): 776 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(21,163,34.9%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.01355/6.912, allocations: 3.086 MB / 1.386 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005473/6.918, allocations: 0.5872 MB / 1.386 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7627/7.68, allocations: 136.4 MB / 1.52 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002118/7.681, allocations: 58.41 kB / 1.52 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0004338/7.681, allocations: 58.44 kB / 1.52 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002574/7.681, allocations: 28 kB / 1.52 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9753/8.657, allocations: 206.2 MB / 1.721 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-05/8.657, allocations: 4.438 kB / 1.721 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002554/8.659, allocations: 333.2 kB / 1.721 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1118/8.771, allocations: 33.32 MB / 1.754 GB, free: 119.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0024/8.774, allocations: 100 kB / 1.754 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7254/9.499, allocations: 185.8 MB / 1.935 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.972e-05/9.499, allocations: 8 kB / 1.935 GB, free: 102.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.9325/10.43, allocations: 152.2 MB / 2.084 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002437/10.43, allocations: 0.6234 MB / 2.085 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004604/10.44, allocations: 102.3 kB / 2.085 GB, free: 115.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01256/10.45, allocations: 1.479 MB / 2.086 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006226/10.46, allocations: 497.5 kB / 2.087 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002235/10.46, allocations: 146.1 kB / 2.087 GB, free: 114.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01081/10.47, allocations: 3.521 MB / 2.09 GB, free: 113.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.32e-07/10.47, allocations: 0 / 2.09 GB, free: 113.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.02679/10.5, allocations: 3.806 MB / 2.094 GB, free: 110.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.9757/11.47, allocations: 152.7 MB / 2.243 GB, free: 119 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.08586/11.56, allocations: 38.67 MB / 2.281 GB, free: 91.88 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-05/11.56, allocations: 0 / 2.281 GB, free: 91.88 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.07731/11.64, allocations: 20.51 MB / 2.301 GB, free: 71.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0157/11.65, allocations: 0.8229 MB / 2.302 GB, free: 70.61 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.965/13.62, allocations: 370.9 MB / 2.664 GB, free: 41.99 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00951/13.63, allocations: 5.1 MB / 2.669 GB, free: 36.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008557/13.64, allocations: 2.065 MB / 2.671 GB, free: 34.96 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008034/13.64, allocations: 3.028 MB / 2.674 GB, free: 31.94 MB / 478.1 MB Notification: Performance of SimCode: time 3.206e-06/13.64, allocations: 0 / 2.674 GB, free: 31.94 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.388/15.03, allocations: 338.2 MB / 3.004 GB, free: 28.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 30.01/45.04, allocations: 7.609 kB / 3.004 GB, free: 28.07 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_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_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches