Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001315, allocations: 118.2 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2208/0.2208, allocations: 46.12 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica 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.002196/0.002196, allocations: 83.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3601, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01166/0.3718, allocations: 9.496 MB / 0.5399 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009197/0.3811, allocations: 3.821 MB / 0.5436 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.3833, allocations: 60.94 kB / 0.5437 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005574/0.3889, allocations: 2.752 MB / 0.5464 GB, free: 1.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005374/0.3943, allocations: 1.62 MB / 0.5479 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.3963, allocations: 0.7135 MB / 0.5486 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006457/0.4028, allocations: 3.895 MB / 0.5524 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004698/0.4075, allocations: 3.669 MB / 0.556 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002783/0.4104, allocations: 1.398 MB / 0.5574 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003311/0.4137, allocations: 1.904 MB / 0.5592 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008078/0.4145, allocations: 312 kB / 0.5595 GB, free: 3.984 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.4173, allocations: 1.182 MB / 0.5607 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.4194, allocations: 1.742 MB / 0.5624 GB, free: 1.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002701/0.4221, allocations: 2.086 MB / 0.5644 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.4327, allocations: 6.853 MB / 0.5711 GB, free: 8.078 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.4327, allocations: 0 / 0.5711 GB, free: 8.078 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4327, allocations: 0 / 0.5711 GB, free: 8.078 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002162/0.433, allocations: 0 / 0.5711 GB, free: 8.078 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01259/0.4456, allocations: 4.575 MB / 0.5756 GB, free: 3.43 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4456, allocations: 11.97 kB / 0.5756 GB, free: 3.418 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001335/0.447, allocations: 0.6574 MB / 0.5763 GB, free: 2.75 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09035/0.5373, allocations: 7.071 MB / 0.5832 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006561/0.5439, allocations: 2.676 MB / 0.5858 GB, free: 8.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.5442, allocations: 218 kB / 0.586 GB, free: 8.715 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009778/0.5452, allocations: 303.8 kB / 0.5863 GB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/0.5607, allocations: 8.649 MB / 0.5947 GB, free: 15.12 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001676/0.5609, allocations: 43.7 kB / 0.5948 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009509/0.5619, allocations: 135.9 kB / 0.5949 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/0.5653, allocations: 1.657 MB / 0.5965 GB, free: 13.29 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02059/0.5859, allocations: 7.086 MB / 0.6034 GB, free: 6.199 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0468/0.6327, allocations: 33.29 MB / 0.6359 GB, free: 3.906 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005343/0.6381, allocations: 2.377 MB / 0.6383 GB, free: 1.383 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.6401, allocations: 1.215 MB / 0.6394 GB, free: 160 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004462/0.6406, allocations: 323.8 kB / 0.6398 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.6406, allocations: 47.06 kB / 0.6398 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=122): time 6.202e-06/0.6407, allocations: 3.984 kB / 0.6398 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=140): time 0.03055/0.6712, allocations: 10.69 MB / 0.6502 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.6714, allocations: 200.6 kB / 0.6504 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006019/0.6774, allocations: 3.596 MB / 0.6539 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002349/0.6777, allocations: 45.7 kB / 0.654 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002498/0.6802, allocations: 2.948 MB / 0.6569 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008227/0.681, allocations: 0.5777 MB / 0.6574 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002254/0.6833, allocations: 1.076 MB / 0.6585 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.6835, allocations: 301.1 kB / 0.6588 GB, free: 12.11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003107/0.6866, allocations: 1.704 MB / 0.6604 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006019/0.6926, allocations: 5.067 MB / 0.6654 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009251/0.7019, allocations: 7.34 MB / 0.6726 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.185e-05/0.702, allocations: 32 kB / 0.6726 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=682) (initialization): time 0.01261/0.7146, allocations: 6.752 MB / 0.6792 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.95e-05/0.7147, allocations: 56 kB / 0.6792 GB, free: 3.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/0.7149, allocations: 120 kB / 0.6793 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.7159, allocations: 431.8 kB / 0.6798 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003825/0.7198, allocations: 1.209 MB / 0.6809 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004747/0.7245, allocations: 3.587 MB / 0.6844 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004485/0.7291, allocations: 295.8 kB / 0.6847 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008827/0.73, allocations: 332 kB / 0.685 GB, free: 13.68 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (644): * Single equations (assignments): 640 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003658/0.7336, allocations: 1.955 MB / 0.6869 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006677/0.7343, allocations: 317.9 kB / 0.6873 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.738, allocations: 1.878 MB / 0.6891 GB, free: 9.504 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.883e-05/0.7381, allocations: 20 kB / 0.6891 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.7381, allocations: 0 / 0.6891 GB, free: 9.484 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.7381, allocations: 7.984 kB / 0.6891 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/0.7485, allocations: 5.781 MB / 0.6948 GB, free: 3.629 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.7485, allocations: 0 / 0.6948 GB, free: 3.629 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.7496, allocations: 207.7 kB / 0.695 GB, free: 3.426 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007258/0.7503, allocations: 256.6 kB / 0.6952 GB, free: 3.172 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.4e-05/0.7504, allocations: 23.98 kB / 0.6952 GB, free: 3.148 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004866/0.7553, allocations: 3.173 MB / 0.6983 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.7553, allocations: 3.938 kB / 0.6983 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009771/0.7651, allocations: 3.952 MB / 0.7022 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.7663, allocations: 374.8 kB / 0.7025 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005207/0.7668, allocations: 20 kB / 0.7026 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/0.7686, allocations: 71.86 kB / 0.7026 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004059/0.769, allocations: 100.6 kB / 0.7027 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.7692, allocations: 43.97 kB / 0.7028 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005268/0.7745, allocations: 2.238 MB / 0.705 GB, free: 9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.52e-07/0.7745, allocations: 0 / 0.705 GB, free: 9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006255/0.7808, allocations: 0.8202 MB / 0.7058 GB, free: 8.18 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007466/0.7883, allocations: 4.585 MB / 0.7102 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007579/0.7959, allocations: 4.091 MB / 0.7142 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.796, allocations: 0 / 0.7142 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001938/0.7979, allocations: 1.174 MB / 0.7154 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.8004, allocations: 407.8 kB / 0.7158 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3081/1.108, allocations: 37.91 MB / 0.7528 GB, free: 160.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/1.111, allocations: 3.036 MB / 0.7558 GB, free: 157.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002874/1.114, allocations: 1.706 MB / 0.7574 GB, free: 155.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/1.115, allocations: 1.663 MB / 0.759 GB, free: 154 MB / 0.5762 GB Notification: Performance of SimCode: time 7.52e-07/1.115, allocations: 0 / 0.759 GB, free: 154 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.089/1.204, allocations: 56.52 MB / 0.8142 GB, free: 97.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.46/23.66, allocations: 8.672 kB / 0.8142 GB, free: 97.89 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1)