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.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001719/0.001719, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 199.9 kB / 18.74 MB, free: 4.184 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.441/1.441, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.002555/0.002555, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.296, allocations: 50.56 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01717/0.3133, allocations: 14.97 MB / 424 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.3236, allocations: 4.818 MB / 428.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002599/0.3262, allocations: 91.75 kB / 429 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006803/0.3331, allocations: 3.161 MB / 432.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007932/0.3411, allocations: 2.513 MB / 434.6 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003259/0.3444, allocations: 0.9827 MB / 435.6 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.3566, allocations: 7.047 MB / 442.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006152/0.3628, allocations: 4.333 MB / 447 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004407/0.3673, allocations: 2.211 MB / 449.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005235/0.3725, allocations: 3.228 MB / 452.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.374, allocations: 484 kB / 452.9 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003346/0.3774, allocations: 1.482 MB / 454.4 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003464/0.3809, allocations: 2.829 MB / 457.2 MB, free: 1.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004728/0.3856, allocations: 3.289 MB / 460.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01302/0.3986, allocations: 10.53 MB / 471 MB, free: 3.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3987, allocations: 0 / 471 MB, free: 3.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.227e-06/0.3987, allocations: 0 / 471 MB, free: 3.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003465/0.3991, allocations: 3.938 kB / 471 MB, free: 3.121 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.02395/0.423, allocations: 7.616 MB / 478.7 MB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.4231, allocations: 11.97 kB / 478.7 MB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003425/0.4265, allocations: 1.141 MB / 479.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04425/0.4708, allocations: 7.555 MB / 487.4 MB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.482, allocations: 4.651 MB / 492 MB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003585/0.4824, allocations: 324.1 kB / 492.3 MB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002067/0.4844, allocations: 439.7 kB / 492.8 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02963/0.5141, allocations: 15.61 MB / 0.4965 GB, free: 12.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001668/0.5143, allocations: 63.45 kB / 0.4965 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000676/0.515, allocations: 203.8 kB / 0.4967 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005295/0.5203, allocations: 3.224 MB / 0.4999 GB, free: 9.188 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02904/0.5494, allocations: 13.9 MB / 0.5134 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3321/0.8816, allocations: 57.19 MB / 0.5693 GB, free: 84.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01242/0.894, allocations: 6.491 MB / 0.5756 GB, free: 81.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004124/0.8982, allocations: 3.563 MB / 0.5791 GB, free: 79.76 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01893/0.9172, allocations: 14.32 MB / 0.5931 GB, free: 70.25 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/0.9173, allocations: 66.02 kB / 0.5931 GB, free: 70.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=286): time 6.903e-06/0.9173, allocations: 0 / 0.5931 GB, free: 70.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=336): time 0.136/1.053, allocations: 41.94 MB / 0.6341 GB, free: 28.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/1.053, allocations: 214 kB / 0.6343 GB, free: 28.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006859/1.06, allocations: 5.501 MB / 0.6397 GB, free: 23.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007473/1.061, allocations: 73.14 kB / 0.6397 GB, free: 23.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/1.063, allocations: 4.591 MB / 0.6442 GB, free: 18.69 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001561/1.065, allocations: 1.298 MB / 0.6455 GB, free: 17.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003105/1.068, allocations: 1.794 MB / 0.6473 GB, free: 15.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.481e-05/1.068, allocations: 305.1 kB / 0.6475 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005854/1.074, allocations: 4.62 MB / 0.6521 GB, free: 10.67 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009222/1.083, allocations: 9.602 MB / 0.6614 GB, free: 14.64 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0221/1.105, allocations: 15.26 MB / 0.6763 GB, free: 12.91 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001721/1.106, allocations: 48 kB / 0.6764 GB, free: 12.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04844/1.154, allocations: 18.98 MB / 0.6949 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/1.154, allocations: 84 kB / 0.695 GB, free: 9.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/1.155, allocations: 172.8 kB / 0.6952 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02381/1.178, allocations: 5.773 MB / 0.7008 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007559/1.186, allocations: 2.047 MB / 0.7028 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03754/1.224, allocations: 25.65 MB / 0.7278 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007184/1.231, allocations: 0.5384 MB / 0.7284 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00177/1.233, allocations: 0.5 MB / 0.7289 GB, free: 6.766 MB / 0.5294 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.006406/1.239, allocations: 3.096 MB / 0.7319 GB, free: 3.656 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/1.24, allocations: 0.5238 MB / 0.7324 GB, free: 3.129 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03552/1.276, allocations: 12.59 MB / 0.7447 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.945e-05/1.276, allocations: 56.55 kB / 0.7447 GB, free: 6.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.147e-05/1.276, allocations: 15.94 kB / 0.7448 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.29e-05/1.276, allocations: 11.95 kB / 0.7448 GB, free: 6.383 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3101/1.586, allocations: 24.19 MB / 0.7684 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.623e-05/1.586, allocations: 3.688 kB / 0.7684 GB, free: 193.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003039/1.589, allocations: 0.5731 MB / 0.769 GB, free: 193.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01885/1.608, allocations: 4.811 MB / 0.7737 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009631/1.609, allocations: 55.5 kB / 0.7737 GB, free: 192.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02354/1.633, allocations: 20.92 MB / 0.7941 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.633, allocations: 13.95 kB / 0.7942 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03093/1.664, allocations: 17.02 MB / 0.8108 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/1.665, allocations: 0.5474 MB / 0.8113 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001281/1.667, allocations: 61.7 kB / 0.8114 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003121/1.67, allocations: 254.9 kB / 0.8116 GB, free: 157.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/1.671, allocations: 193.5 kB / 0.8118 GB, free: 157.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003266/1.671, allocations: 84 kB / 0.8119 GB, free: 157.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004832/1.676, allocations: 3.42 MB / 0.8152 GB, free: 153.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.81e-07/1.676, allocations: 0 / 0.8152 GB, free: 153.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007426/1.683, allocations: 1.686 MB / 0.8169 GB, free: 152.3 MB / 0.545 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.03164/1.715, allocations: 17.7 MB / 0.8341 GB, free: 134.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01417/1.729, allocations: 10.63 MB / 0.8445 GB, free: 124 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/1.729, allocations: 3.938 kB / 0.8445 GB, free: 124 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005208/1.735, allocations: 4.005 MB / 0.8484 GB, free: 120 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004813/1.739, allocations: 0.648 MB / 0.8491 GB, free: 119.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1305/1.87, allocations: 86.13 MB / 0.9332 GB, free: 25.55 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004343/1.874, allocations: 4.623 MB / 0.9377 GB, free: 20.89 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005613/1.88, allocations: 2.975 MB / 0.9406 GB, free: 17.91 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003442/1.883, allocations: 2.917 MB / 0.9434 GB, free: 14.99 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/1.883, allocations: 0 / 0.9434 GB, free: 14.99 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3805/2.264, allocations: 125.3 MB / 1.066 GB, free: 93.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 39.57/41.83, allocations: 6.859 kB / 1.066 GB, free: 93.04 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)