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.001374/0.001374, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001563/0.001563, allocations: 198 kB / 18.73 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.421/1.421, 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.2255/0.2255, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002355/0.002355, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3152, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01993/0.3352, allocations: 17.26 MB / 0.5475 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.3479, allocations: 5.474 MB / 0.5528 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003392/0.3513, allocations: 115.6 kB / 0.5529 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009096/0.3605, allocations: 4.345 MB / 0.5572 GB, free: 6.445 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007856/0.3684, allocations: 2.722 MB / 0.5598 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003511/0.3719, allocations: 1.459 MB / 0.5613 GB, free: 2.254 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0132/0.3851, allocations: 8.633 MB / 0.5697 GB, free: 9.605 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007902/0.3931, allocations: 5.374 MB / 0.5749 GB, free: 4.156 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005184/0.3983, allocations: 2.667 MB / 0.5775 GB, free: 1.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007269/0.4056, allocations: 3.813 MB / 0.5813 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002506/0.4082, allocations: 0.5352 MB / 0.5818 GB, free: 13.12 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005055/0.4133, allocations: 1.6 MB / 0.5833 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004586/0.4179, allocations: 3.281 MB / 0.5865 GB, free: 8.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006439/0.4243, allocations: 3.772 MB / 0.5902 GB, free: 4.438 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01691/0.4413, allocations: 11.52 MB / 0.6015 GB, free: 8.863 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4413, allocations: 3.938 kB / 0.6015 GB, free: 8.859 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4414, allocations: 4 kB / 0.6015 GB, free: 8.855 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003455/0.4417, allocations: 0 / 0.6015 GB, free: 8.855 MB / 462.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.02414/0.4659, allocations: 8.675 MB / 0.61 GB, free: 84 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.4659, allocations: 12.03 kB / 0.61 GB, free: 72 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00275/0.4687, allocations: 1.079 MB / 0.611 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1852/0.6539, allocations: 12.94 MB / 0.6237 GB, free: 2.016 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01403/0.668, allocations: 6.187 MB / 0.6297 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.6684, allocations: 369.8 kB / 0.6301 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001734/0.6701, allocations: 0.5113 MB / 0.6306 GB, free: 10.88 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0315/0.7017, allocations: 16.1 MB / 0.6463 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002269/0.7019, allocations: 75.41 kB / 0.6464 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008226/0.7028, allocations: 239.8 kB / 0.6466 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005018/0.7078, allocations: 2.926 MB / 0.6495 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02943/0.7372, allocations: 13.43 MB / 0.6626 GB, free: 9.004 MB / 0.5137 GB 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.3436/1.081, allocations: 63.94 MB / 0.725 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/1.103, allocations: 7.716 MB / 0.7325 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004507/1.107, allocations: 4.068 MB / 0.7365 GB, free: 122.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02387/1.131, allocations: 18.73 MB / 0.7548 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/1.131, allocations: 71.2 kB / 0.7549 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=281): time 4.919e-06/1.131, allocations: 0 / 0.7549 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=362): time 0.149/1.28, allocations: 46.85 MB / 0.8006 GB, free: 67.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.882e-05/1.28, allocations: 269.7 kB / 0.8009 GB, free: 67.36 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007552/1.288, allocations: 6.096 MB / 0.8068 GB, free: 61.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007593/1.289, allocations: 81.7 kB / 0.8069 GB, free: 61.28 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002683/1.291, allocations: 4.924 MB / 0.8117 GB, free: 56.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001705/1.293, allocations: 1.402 MB / 0.8131 GB, free: 55.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003755/1.297, allocations: 1.823 MB / 0.8149 GB, free: 53.49 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.049e-05/1.297, allocations: 301.1 kB / 0.8152 GB, free: 53.19 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005421/1.302, allocations: 3.887 MB / 0.8189 GB, free: 49.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007603/1.31, allocations: 9.129 MB / 0.8279 GB, free: 37.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/1.323, allocations: 14.07 MB / 0.8416 GB, free: 21.21 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/1.323, allocations: 55.94 kB / 0.8417 GB, free: 21.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02959/1.353, allocations: 16.36 MB / 0.8576 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-05/1.353, allocations: 87.62 kB / 0.8577 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000138/1.353, allocations: 184 kB / 0.8579 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01226/1.365, allocations: 4.109 MB / 0.8619 GB, free: 376 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00734/1.372, allocations: 2.043 MB / 0.8639 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03913/1.412, allocations: 23.54 MB / 0.8869 GB, free: 6.504 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007687/1.419, allocations: 0.5072 MB / 0.8874 GB, free: 5.996 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001894/1.421, allocations: 0.5273 MB / 0.8879 GB, free: 5.469 MB / 0.5919 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.0071/1.428, allocations: 3.113 MB / 0.8909 GB, free: 2.348 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001629/1.43, allocations: 0.5976 MB / 0.8915 GB, free: 1.746 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02644/1.457, allocations: 9.783 MB / 0.9011 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.256e-05/1.457, allocations: 43.94 kB / 0.9011 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.275e-05/1.457, allocations: 16 kB / 0.9011 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-05/1.457, allocations: 19.94 kB / 0.9012 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0449/1.502, allocations: 19.3 MB / 0.92 GB, free: 4.484 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.161e-05/1.502, allocations: 4 kB / 0.92 GB, free: 4.48 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/1.505, allocations: 0.5304 MB / 0.9205 GB, free: 3.949 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01421/1.519, allocations: 3.673 MB / 0.9241 GB, free: 272 kB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008659/1.52, allocations: 66.7 kB / 0.9242 GB, free: 208 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03684/1.557, allocations: 21.41 MB / 0.9451 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/1.557, allocations: 7.938 kB / 0.9451 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0329/1.59, allocations: 14.4 MB / 0.9592 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.592, allocations: 0.6102 MB / 0.9598 GB, free: 11.39 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001416/1.593, allocations: 56 kB / 0.9598 GB, free: 11.33 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.596, allocations: 207.7 kB / 0.96 GB, free: 11.13 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009889/1.597, allocations: 233.4 kB / 0.9602 GB, free: 10.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003569/1.598, allocations: 96.08 kB / 0.9603 GB, free: 10.81 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.006916/1.605, allocations: 3.795 MB / 0.964 GB, free: 7.02 MB / 0.67 GB Notification: Performance of sort global known variables: time 5.11e-07/1.605, allocations: 0 / 0.964 GB, free: 7.02 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.008634/1.613, allocations: 1.812 MB / 0.9658 GB, free: 5.207 MB / 0.67 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.2753/1.889, allocations: 15.16 MB / 0.9806 GB, free: 249.6 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01506/1.904, allocations: 9.943 MB / 0.9903 GB, free: 245.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.904, allocations: 2 kB / 0.9903 GB, free: 245.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005642/1.91, allocations: 3.903 MB / 0.9941 GB, free: 244.3 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006398/1.916, allocations: 0.807 MB / 0.9949 GB, free: 243.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1194/2.035, allocations: 83.18 MB / 1.076 GB, free: 164.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006694/2.042, allocations: 4.846 MB / 1.081 GB, free: 159.3 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.006421/2.049, allocations: 2.774 MB / 1.084 GB, free: 156.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004709/2.053, allocations: 3.241 MB / 1.087 GB, free: 153.3 MB / 0.67 GB Notification: Performance of SimCode: time 8.12e-07/2.053, allocations: 1.969 kB / 1.087 GB, free: 153.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1854/2.239, allocations: 132.9 MB / 1.217 GB, free: 20.95 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 48.16/50.4, allocations: 10.5 kB / 1.217 GB, free: 20.95 MB / 0.67 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)