Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001214/0.001214, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 71.77 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1145, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.1991/0.3137, allocations: 15.86 MB / 373.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009973/0.3237, allocations: 5.141 MB / 378.6 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002597/0.3263, allocations: 113.4 kB / 378.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008084/0.3345, allocations: 4.424 MB / 383.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007217/0.3417, allocations: 2.497 MB / 385.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002681/0.3444, allocations: 1.149 MB / 386.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.3563, allocations: 8.099 MB / 394.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006517/0.3629, allocations: 5.313 MB / 400.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004941/0.3678, allocations: 2.457 MB / 402.6 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005658/0.3735, allocations: 3.353 MB / 406 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001844/0.3754, allocations: 0.5039 MB / 406.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004637/0.3801, allocations: 1.485 MB / 408 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005065/0.3851, allocations: 2.94 MB / 410.9 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008569/0.3937, allocations: 3.417 MB / 414.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01662/0.4104, allocations: 10.22 MB / 424.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.4105, allocations: 0 / 424.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4105, allocations: 0 / 424.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004439/0.4109, allocations: 0 / 424.5 MB, free: 8.355 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.02542/0.4364, allocations: 7.907 MB / 432.5 MB, free: 372 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.4364, allocations: 8.031 kB / 432.5 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003293/0.4397, allocations: 1.082 MB / 433.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05875/0.4985, allocations: 8.519 MB / 442.1 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/0.5114, allocations: 5.419 MB / 447.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003689/0.5118, allocations: 333.1 kB / 447.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001957/0.5137, allocations: 475.5 kB / 448.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03331/0.5471, allocations: 14.46 MB / 462.7 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000472/0.5476, allocations: 71.34 kB / 462.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002003/0.5496, allocations: 215.8 kB / 463 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006067/0.5557, allocations: 2.84 MB / 465.9 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02873/0.5845, allocations: 13.01 MB / 478.9 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08893/0.6734, allocations: 58.28 MB / 0.5246 GB, free: 5.047 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2308/0.9043, allocations: 7.683 MB / 0.5321 GB, free: 138.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006412/0.9107, allocations: 5.01 MB / 0.5369 GB, free: 137.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02082/0.9316, allocations: 12.69 MB / 0.5493 GB, free: 131.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.378e-05/0.9317, allocations: 65.45 kB / 0.5494 GB, free: 131.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=326): time 7.093e-06/0.9317, allocations: 0 / 0.5494 GB, free: 131.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=572): time 2.046/2.978, allocations: 411.3 MB / 0.9511 GB, free: 81.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.654e-05/2.978, allocations: 265.7 kB / 0.9514 GB, free: 81.26 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006461/2.985, allocations: 5.486 MB / 0.9567 GB, free: 75.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00162/2.986, allocations: 115.2 kB / 0.9568 GB, free: 75.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002059/2.988, allocations: 4.01 MB / 0.9607 GB, free: 72.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00246/2.991, allocations: 2.005 MB / 0.9627 GB, free: 70.55 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003676/2.995, allocations: 2.069 MB / 0.9647 GB, free: 68.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.87e-05/2.995, allocations: 309.7 kB / 0.965 GB, free: 68.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01155/3.006, allocations: 10.88 MB / 0.9756 GB, free: 57.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01369/3.02, allocations: 14.99 MB / 0.9903 GB, free: 40.46 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0284/3.048, allocations: 27.12 MB / 1.017 GB, free: 11.47 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/3.048, allocations: 36 kB / 1.017 GB, free: 11.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5636/3.612, allocations: 140.5 MB / 1.154 GB, free: 36.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/3.612, allocations: 64 kB / 1.154 GB, free: 36.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/3.612, allocations: 136 kB / 1.154 GB, free: 36.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.07733/3.69, allocations: 34.63 MB / 1.188 GB, free: 1.863 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005024/3.695, allocations: 1.482 MB / 1.189 GB, free: 388 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7835/4.478, allocations: 203.2 MB / 1.388 GB, free: 122.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01542/4.494, allocations: 1.702 MB / 1.39 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003182/4.497, allocations: 0.5258 MB / 1.39 GB, free: 122.6 MB / 478.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.008821/4.506, allocations: 3.087 MB / 1.393 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002216/4.508, allocations: 0.5814 MB / 1.394 GB, free: 121.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3107/4.819, allocations: 136.5 MB / 1.527 GB, free: 11.29 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/4.819, allocations: 64.59 kB / 1.527 GB, free: 11.23 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002097/4.819, allocations: 56 kB / 1.527 GB, free: 11.17 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001411/4.819, allocations: 27.91 kB / 1.527 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9239/5.743, allocations: 206.2 MB / 1.729 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.118e-05/5.743, allocations: 7.656 kB / 1.729 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/5.745, allocations: 337.3 kB / 1.729 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07471/5.82, allocations: 33.33 MB / 1.761 GB, free: 121.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001982/5.822, allocations: 98.81 kB / 1.761 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5106/6.332, allocations: 185.8 MB / 1.943 GB, free: 107 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.889e-06/6.332, allocations: 12.06 kB / 1.943 GB, free: 107 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5861/6.919, allocations: 152.3 MB / 2.092 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/6.92, allocations: 0.6223 MB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003304/6.924, allocations: 101.7 kB / 2.092 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01007/6.934, allocations: 1.483 MB / 2.094 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004306/6.938, allocations: 0.4891 MB / 2.094 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001414/6.94, allocations: 140.6 kB / 2.094 GB, free: 119.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005452/6.945, allocations: 3.515 MB / 2.098 GB, free: 118.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.673e-06/6.945, allocations: 0 / 2.098 GB, free: 118.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01441/6.959, allocations: 3.788 MB / 2.102 GB, free: 117.9 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.5802/7.54, allocations: 152.8 MB / 2.251 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0684/7.608, allocations: 38.68 MB / 2.289 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.46e-05/7.608, allocations: 2.844 kB / 2.289 GB, free: 103.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0396/7.648, allocations: 20.52 MB / 2.309 GB, free: 84.29 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007947/7.656, allocations: 0.8311 MB / 2.309 GB, free: 83.48 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.227/8.883, allocations: 371 MB / 2.672 GB, free: 70.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00757/8.89, allocations: 5.093 MB / 2.677 GB, free: 66.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005427/8.896, allocations: 2.063 MB / 2.679 GB, free: 64.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004352/8.9, allocations: 3.027 MB / 2.682 GB, free: 63.84 MB / 494.1 MB Notification: Performance of SimCode: time 1.132e-06/8.9, allocations: 0 / 2.682 GB, free: 63.84 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.847/9.747, allocations: 338.1 MB / 3.012 GB, free: 69.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/27.41, allocations: 6.062 kB / 3.012 GB, free: 69.59 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches