Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001821/0.001821, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.44 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.2371/0.2371, allocations: 46.13 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.002543/0.002543, allocations: 80.2 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3319, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.02089/0.3529, allocations: 17.28 MB / 0.5475 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.366, allocations: 5.492 MB / 0.5529 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003682/0.3698, allocations: 115.6 kB / 0.553 GB, free: 10.78 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009366/0.3792, allocations: 4.353 MB / 0.5572 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009025/0.3883, allocations: 2.715 MB / 0.5599 GB, free: 3.688 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00419/0.3925, allocations: 1.455 MB / 0.5613 GB, free: 2.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0145/0.4071, allocations: 8.638 MB / 0.5697 GB, free: 9.574 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008723/0.4158, allocations: 5.368 MB / 0.575 GB, free: 4.133 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005259/0.4211, allocations: 2.667 MB / 0.5776 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006551/0.4277, allocations: 3.832 MB / 0.5813 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002258/0.43, allocations: 0.5352 MB / 0.5818 GB, free: 13.08 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004874/0.4349, allocations: 1.607 MB / 0.5834 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005496/0.4405, allocations: 3.289 MB / 0.5866 GB, free: 8.172 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008352/0.4489, allocations: 3.775 MB / 0.5903 GB, free: 4.375 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01737/0.4663, allocations: 11.54 MB / 0.6016 GB, free: 8.777 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4663, allocations: 3.938 kB / 0.6016 GB, free: 8.773 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.4663, allocations: 4 kB / 0.6016 GB, free: 8.77 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004232/0.4668, allocations: 0 / 0.6016 GB, free: 8.77 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02649/0.4933, allocations: 8.686 MB / 0.6101 GB, free: 15.98 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.4933, allocations: 8.031 kB / 0.6101 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003936/0.4973, allocations: 1.075 MB / 0.6111 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1811/0.6784, allocations: 12.95 MB / 0.6238 GB, free: 1.926 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/0.6937, allocations: 6.198 MB / 0.6298 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/0.6941, allocations: 373.8 kB / 0.6302 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.6963, allocations: 0.5152 MB / 0.6307 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03434/0.7307, allocations: 16.11 MB / 0.6464 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003581/0.7311, allocations: 87.34 kB / 0.6465 GB, free: 9.504 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00169/0.7328, allocations: 235.8 kB / 0.6467 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005261/0.7381, allocations: 2.927 MB / 0.6496 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03043/0.7685, allocations: 13.45 MB / 0.6627 GB, free: 8.863 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.3301/1.099, allocations: 64.01 MB / 0.7252 GB, free: 125.8 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02069/1.119, allocations: 7.755 MB / 0.7328 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004393/1.124, allocations: 4.128 MB / 0.7368 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02248/1.146, allocations: 18.82 MB / 0.7552 GB, free: 113.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/1.146, allocations: 68.69 kB / 0.7553 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=287): time 5.871e-06/1.146, allocations: 3.875 kB / 0.7553 GB, free: 113.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=370): time 0.1534/1.3, allocations: 51.05 MB / 0.8051 GB, free: 65 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/1.3, allocations: 269.8 kB / 0.8054 GB, free: 64.68 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006819/1.307, allocations: 6.085 MB / 0.8113 GB, free: 58.59 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008362/1.308, allocations: 77.7 kB / 0.8114 GB, free: 58.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002414/1.31, allocations: 4.927 MB / 0.8162 GB, free: 53.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001402/1.312, allocations: 1.42 MB / 0.8176 GB, free: 52.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002292/1.314, allocations: 1.835 MB / 0.8194 GB, free: 50.35 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.078e-05/1.314, allocations: 305.1 kB / 0.8197 GB, free: 50.05 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00454/1.318, allocations: 3.93 MB / 0.8235 GB, free: 46.11 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006382/1.325, allocations: 9.167 MB / 0.8325 GB, free: 34.45 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.337, allocations: 14.16 MB / 0.8463 GB, free: 17.91 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.337, allocations: 52 kB / 0.8464 GB, free: 17.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02912/1.366, allocations: 16.43 MB / 0.8624 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.366, allocations: 80.22 kB / 0.8625 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001634/1.367, allocations: 188 kB / 0.8627 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01282/1.379, allocations: 4.033 MB / 0.8666 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007107/1.387, allocations: 2.059 MB / 0.8686 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03717/1.424, allocations: 23.55 MB / 0.8916 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007232/1.431, allocations: 0.5033 MB / 0.8921 GB, free: 2.699 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001699/1.433, allocations: 0.5234 MB / 0.8926 GB, free: 2.176 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 (1088): * Single equations (assignments): 1083 * 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%), (4,48,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006191/1.439, allocations: 3.128 MB / 0.8957 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/1.44, allocations: 0.6014 MB / 0.8962 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0228/1.463, allocations: 9.833 MB / 0.9058 GB, free: 4.535 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-05/1.463, allocations: 39.98 kB / 0.9059 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.161e-05/1.463, allocations: 16 kB / 0.9059 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.537e-05/1.463, allocations: 23.88 kB / 0.9059 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04211/1.506, allocations: 19.41 MB / 0.9249 GB, free: 1.012 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.974e-05/1.506, allocations: 0 / 0.9249 GB, free: 1.012 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003025/1.509, allocations: 0.5305 MB / 0.9254 GB, free: 492 kB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/1.522, allocations: 3.629 MB / 0.9289 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006527/1.523, allocations: 63.98 kB / 0.929 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03228/1.555, allocations: 21.38 MB / 0.9499 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/1.555, allocations: 4 kB / 0.9499 GB, free: 7.113 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02809/1.583, allocations: 14.52 MB / 0.9641 GB, free: 8.512 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.585, allocations: 0.618 MB / 0.9647 GB, free: 7.871 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001317/1.586, allocations: 60 kB / 0.9647 GB, free: 7.812 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003137/1.589, allocations: 210.8 kB / 0.9649 GB, free: 7.609 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009091/1.59, allocations: 226.1 kB / 0.9651 GB, free: 7.387 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003231/1.59, allocations: 99.97 kB / 0.9652 GB, free: 7.289 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.007266/1.598, allocations: 3.799 MB / 0.9689 GB, free: 3.496 MB / 0.67 GB Notification: Performance of sort global known variables: time 7.92e-07/1.598, allocations: 0 / 0.9689 GB, free: 3.496 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.009223/1.607, allocations: 1.816 MB / 0.9707 GB, free: 1.68 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 (270): * Single equations (assignments): 265 * 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.3356/1.943, allocations: 15.29 MB / 0.9856 GB, free: 250.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01512/1.958, allocations: 10.01 MB / 0.9954 GB, free: 246.8 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/1.958, allocations: 0 / 0.9954 GB, free: 246.8 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.00581/1.964, allocations: 3.958 MB / 0.9993 GB, free: 245.2 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006951/1.971, allocations: 0.8011 MB / 1 GB, free: 244.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1096/2.08, allocations: 83.51 MB / 1.082 GB, free: 162.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005305/2.086, allocations: 4.859 MB / 1.086 GB, free: 157.4 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.00562/2.091, allocations: 2.797 MB / 1.089 GB, free: 154.6 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00403/2.095, allocations: 3.249 MB / 1.092 GB, free: 151.3 MB / 0.67 GB Notification: Performance of SimCode: time 1.373e-06/2.095, allocations: 4 kB / 1.092 GB, free: 151.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4236/2.519, allocations: 133.4 MB / 1.223 GB, free: 232.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.19/49.71, allocations: 9.094 kB / 1.223 GB, free: 232.7 MB / 0.67 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_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_LineForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1)