Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_1_0-beta_om_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.001504/0.001504, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 208.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.432/1.432, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 59.91 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2713, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01895/0.2903, allocations: 15.88 MB / 424.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.302, allocations: 5.124 MB / 430.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002913/0.305, allocations: 115.6 kB / 430.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00919/0.3142, allocations: 4.427 MB / 434.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007669/0.3219, allocations: 2.493 MB / 437.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003306/0.3253, allocations: 1.143 MB / 438.2 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01298/0.3383, allocations: 8.104 MB / 446.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009123/0.3474, allocations: 5.31 MB / 451.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005473/0.353, allocations: 2.461 MB / 454.1 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00601/0.359, allocations: 3.349 MB / 457.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002127/0.3612, allocations: 0.5078 MB / 458 MB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004588/0.3658, allocations: 1.483 MB / 459.5 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004694/0.3705, allocations: 2.942 MB / 462.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007169/0.3777, allocations: 3.418 MB / 465.8 MB, free: 8.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01773/0.3955, allocations: 10.55 MB / 476.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.3955, allocations: 0 / 476.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3955, allocations: 0 / 476.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000444/0.396, allocations: 0 / 476.4 MB, free: 13.77 MB / 398.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.02635/0.4223, allocations: 8.102 MB / 484.5 MB, free: 5.566 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.4224, allocations: 12.03 kB / 484.5 MB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003793/0.4262, allocations: 1.082 MB / 485.6 MB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06004/0.4863, allocations: 8.558 MB / 494.1 MB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01354/0.4999, allocations: 5.546 MB / 499.7 MB, free: 6.262 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004183/0.5003, allocations: 336.9 kB / 500 MB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.5023, allocations: 475.7 kB / 0.4887 GB, free: 5.465 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03309/0.5354, allocations: 14.47 MB / 0.5029 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/0.5358, allocations: 71.48 kB / 0.5029 GB, free: 5.992 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001329/0.5371, allocations: 211.8 kB / 0.5031 GB, free: 5.785 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006031/0.5431, allocations: 2.84 MB / 0.5059 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02856/0.5717, allocations: 13 MB / 0.5186 GB, free: 5.906 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3204/0.8921, allocations: 58.12 MB / 0.5754 GB, free: 82.72 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01647/0.9087, allocations: 7.686 MB / 0.5829 GB, free: 79.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00526/0.914, allocations: 5.013 MB / 0.5878 GB, free: 77.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01629/0.9303, allocations: 12.69 MB / 0.6002 GB, free: 67.61 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.9304, allocations: 76.59 kB / 0.6002 GB, free: 67.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.202e-06/0.9304, allocations: 0 / 0.6002 GB, free: 67.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.11/3.04, allocations: 411.7 MB / 1.002 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/3.04, allocations: 271.1 kB / 1.003 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009028/3.049, allocations: 5.498 MB / 1.008 GB, free: 137.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001785/3.051, allocations: 113 kB / 1.008 GB, free: 137.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002451/3.054, allocations: 4.154 MB / 1.012 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002955/3.056, allocations: 2.098 MB / 1.014 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006055/3.063, allocations: 2.084 MB / 1.016 GB, free: 130 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.409e-05/3.063, allocations: 305.1 kB / 1.016 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01228/3.075, allocations: 10.88 MB / 1.027 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01476/3.09, allocations: 14.98 MB / 1.042 GB, free: 102 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02872/3.118, allocations: 27.13 MB / 1.068 GB, free: 73.03 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001443/3.119, allocations: 40 kB / 1.068 GB, free: 72.99 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.5818/3.7, allocations: 140.5 MB / 1.205 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002066/3.701, allocations: 65.25 kB / 1.206 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002586/3.701, allocations: 136 kB / 1.206 GB, free: 124.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07735/3.778, allocations: 34.59 MB / 1.239 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004812/3.783, allocations: 1.473 MB / 1.241 GB, free: 89.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5476/4.331, allocations: 203.2 MB / 1.439 GB, free: 86.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01392/4.345, allocations: 1.705 MB / 1.441 GB, free: 84.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003267/4.348, allocations: 0.5193 MB / 1.441 GB, free: 83.96 MB / 0.5294 GB 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.009686/4.358, allocations: 3.088 MB / 1.445 GB, free: 81.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003319/4.361, allocations: 0.6108 MB / 1.445 GB, free: 80.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5879/4.949, allocations: 136.5 MB / 1.578 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/4.949, allocations: 56 kB / 1.578 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002789/4.95, allocations: 60 kB / 1.579 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001656/4.95, allocations: 27.89 kB / 1.579 GB, free: 140.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6346/5.584, allocations: 206 MB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-05/5.585, allocations: 10.28 kB / 1.78 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001675/5.586, allocations: 329.8 kB / 1.78 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07356/5.66, allocations: 33.29 MB / 1.813 GB, free: 129.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002076/5.662, allocations: 104 kB / 1.813 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5164/6.178, allocations: 185.9 MB / 1.994 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/6.178, allocations: 11.84 kB / 1.994 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5838/6.762, allocations: 152.4 MB / 2.143 GB, free: 154.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/6.764, allocations: 0.6582 MB / 2.144 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003397/6.768, allocations: 101.9 kB / 2.144 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01054/6.778, allocations: 1.48 MB / 2.145 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004618/6.783, allocations: 499.6 kB / 2.146 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001501/6.784, allocations: 141.5 kB / 2.146 GB, free: 154.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005897/6.79, allocations: 3.517 MB / 2.149 GB, free: 153.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.11e-07/6.79, allocations: 0 / 2.149 GB, free: 153.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0142/6.804, allocations: 3.786 MB / 2.153 GB, free: 153 MB / 0.545 GB 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.3203/7.125, allocations: 152.9 MB / 2.302 GB, free: 32.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.3226/7.447, allocations: 33.68 MB / 2.335 GB, free: 177.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/7.447, allocations: 0 / 2.335 GB, free: 177.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.03908/7.487, allocations: 20.56 MB / 2.355 GB, free: 176.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007086/7.494, allocations: 0.8267 MB / 2.356 GB, free: 176.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9959/8.49, allocations: 353.5 MB / 2.701 GB, free: 23.76 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009938/8.5, allocations: 5.099 MB / 2.706 GB, free: 18.65 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005397/8.505, allocations: 2.064 MB / 2.708 GB, free: 16.58 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004096/8.509, allocations: 3.022 MB / 2.711 GB, free: 13.56 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/8.509, allocations: 4 kB / 2.711 GB, free: 13.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9133/9.422, allocations: 334.2 MB / 3.037 GB, free: 81.72 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.92/40.34, allocations: 5.703 kB / 3.037 GB, free: 81.72 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)