Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001833/0.001833, allocations: 102.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002163/0.002164, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2232/0.2232, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002336/0.002336, allocations: 86.75 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1343, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.0201/0.1544, allocations: 17.24 MB / 497.5 MB, free: 3.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.1659, allocations: 5.49 MB / 0.4912 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002929/0.1688, allocations: 115.6 kB / 0.4913 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008631/0.1776, allocations: 4.353 MB / 0.4955 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008532/0.1861, allocations: 2.696 MB / 0.4982 GB, free: 7.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003454/0.1896, allocations: 1.466 MB / 0.4996 GB, free: 5.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2273/0.417, allocations: 8.628 MB / 0.508 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008875/0.4259, allocations: 5.374 MB / 0.5133 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006134/0.4321, allocations: 2.663 MB / 0.5159 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006828/0.439, allocations: 3.811 MB / 0.5196 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002472/0.4415, allocations: 0.5332 MB / 0.5201 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0046/0.4461, allocations: 1.607 MB / 0.5217 GB, free: 12.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004137/0.4503, allocations: 3.282 MB / 0.5249 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005025/0.4553, allocations: 3.773 MB / 0.5286 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00954/0.4649, allocations: 11.14 MB / 0.5394 GB, free: 3.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.465, allocations: 0 / 0.5394 GB, free: 3.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.465, allocations: 0 / 0.5394 GB, free: 3.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000369/0.4653, allocations: 0 / 0.5394 GB, free: 3.148 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02496/0.4903, allocations: 8.475 MB / 0.5477 GB, free: 13.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4904, allocations: 8.031 kB / 0.5477 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002914/0.4933, allocations: 1.083 MB / 0.5488 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1773/0.6706, allocations: 12.9 MB / 0.5614 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.6845, allocations: 6.051 MB / 0.5673 GB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003343/0.6848, allocations: 369.4 kB / 0.5676 GB, free: 8.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001745/0.6866, allocations: 0.5217 MB / 0.5681 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03161/0.7182, allocations: 16.1 MB / 0.5839 GB, free: 7.617 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/0.7185, allocations: 83.67 kB / 0.5839 GB, free: 7.566 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007305/0.7192, allocations: 240.3 kB / 0.5842 GB, free: 7.391 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005021/0.7242, allocations: 2.92 MB / 0.587 GB, free: 4.512 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03047/0.7547, allocations: 13.43 MB / 0.6001 GB, free: 7.34 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09057/0.8453, allocations: 64.09 MB / 0.6627 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02435/0.8697, allocations: 7.723 MB / 0.6703 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006063/0.8758, allocations: 4.071 MB / 0.6743 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03373/0.9096, allocations: 18.72 MB / 0.6925 GB, free: 7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.448e-05/0.9097, allocations: 64.12 kB / 0.6926 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=281): time 5.781e-06/0.9097, allocations: 0 / 0.6926 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of matching and sorting (n=362): time 0.3668/1.277, allocations: 46.47 MB / 0.738 GB, free: 184.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/1.277, allocations: 270.9 kB / 0.7382 GB, free: 184 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/1.287, allocations: 6.082 MB / 0.7442 GB, free: 181.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008779/1.288, allocations: 84.92 kB / 0.7443 GB, free: 181.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002807/1.291, allocations: 4.744 MB / 0.7489 GB, free: 178.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001697/1.292, allocations: 1.331 MB / 0.7502 GB, free: 177.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002583/1.295, allocations: 1.81 MB / 0.752 GB, free: 176.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.529e-05/1.295, allocations: 301.1 kB / 0.7522 GB, free: 176 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004749/1.3, allocations: 3.889 MB / 0.756 GB, free: 174.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006563/1.306, allocations: 9.125 MB / 0.765 GB, free: 166.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/1.32, allocations: 14.05 MB / 0.7787 GB, free: 152.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/1.32, allocations: 52 kB / 0.7787 GB, free: 152.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.03323/1.353, allocations: 16.36 MB / 0.7947 GB, free: 136.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/1.353, allocations: 80 kB / 0.7948 GB, free: 136.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002861/1.354, allocations: 184 kB / 0.795 GB, free: 135.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/1.366, allocations: 4.122 MB / 0.799 GB, free: 131.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006439/1.373, allocations: 2.051 MB / 0.801 GB, free: 129.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02736/1.4, allocations: 23.53 MB / 0.824 GB, free: 106 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008011/1.408, allocations: 0.5045 MB / 0.8245 GB, free: 105.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.41, allocations: 0.5312 MB / 0.825 GB, free: 104.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1080): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (5,47,64.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005855/1.416, allocations: 3.11 MB / 0.828 GB, free: 101.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.417, allocations: 0.5708 MB / 0.8286 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01921/1.436, allocations: 9.779 MB / 0.8381 GB, free: 91.41 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.086e-05/1.437, allocations: 42.14 kB / 0.8382 GB, free: 91.37 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-05/1.437, allocations: 16 kB / 0.8382 GB, free: 91.35 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.024e-05/1.437, allocations: 19.94 kB / 0.8382 GB, free: 91.33 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.037/1.474, allocations: 19.45 MB / 0.8572 GB, free: 71.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.755e-05/1.474, allocations: 8 kB / 0.8572 GB, free: 71.77 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002853/1.477, allocations: 0.5227 MB / 0.8577 GB, free: 71.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01181/1.488, allocations: 3.69 MB / 0.8613 GB, free: 67.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008827/1.489, allocations: 69.11 kB / 0.8614 GB, free: 67.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0266/1.516, allocations: 21.39 MB / 0.8823 GB, free: 45.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/1.516, allocations: 7.938 kB / 0.8823 GB, free: 45.81 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02522/1.541, allocations: 14.39 MB / 0.8963 GB, free: 31.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001958/1.543, allocations: 0.5834 MB / 0.8969 GB, free: 30.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001901/1.545, allocations: 60 kB / 0.897 GB, free: 30.67 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00364/1.549, allocations: 208.9 kB / 0.8972 GB, free: 30.46 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009929/1.55, allocations: 214.1 kB / 0.8974 GB, free: 30.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.55, allocations: 97.7 kB / 0.8975 GB, free: 30.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006222/1.556, allocations: 3.799 MB / 0.9012 GB, free: 26.37 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.2e-07/1.556, allocations: 0 / 0.9012 GB, free: 26.37 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009945/1.566, allocations: 1.814 MB / 0.9029 GB, free: 24.56 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (262): * Single equations (assignments): 257 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2286/1.795, allocations: 15.13 MB / 0.9177 GB, free: 171.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02611/1.821, allocations: 14.43 MB / 0.9318 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/1.821, allocations: 2.344 kB / 0.9318 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006569/1.828, allocations: 3.899 MB / 0.9356 GB, free: 166.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004758/1.833, allocations: 0.8091 MB / 0.9364 GB, free: 166.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.13/1.963, allocations: 99.35 MB / 1.033 GB, free: 74.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008658/1.971, allocations: 4.842 MB / 1.038 GB, free: 69.86 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01059/1.982, allocations: 2.778 MB / 1.041 GB, free: 67.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005553/1.988, allocations: 3.237 MB / 1.044 GB, free: 63.83 MB / 0.545 GB Notification: Performance of SimCode: time 1.593e-06/1.988, allocations: 0 / 1.044 GB, free: 63.83 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3899/2.377, allocations: 138.2 MB / 1.179 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/16.66, allocations: 8 kB / 1.179 GB, free: 164.2 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)