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.001713/0.001713, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00209/0.00209, allocations: 208.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2305/0.2305, allocations: 46.11 MB / 344.2 MB, free: 11.58 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.002276/0.002276, allocations: 83.75 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1373, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.02083/0.1581, allocations: 17.27 MB / 497.5 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01389/0.1721, allocations: 5.49 MB / 0.4912 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00406/0.1762, allocations: 119.6 kB / 0.4913 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009146/0.1854, allocations: 4.349 MB / 0.4955 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008045/0.1935, allocations: 2.707 MB / 0.4982 GB, free: 7.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003757/0.1973, allocations: 1.459 MB / 0.4996 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2728/0.4701, allocations: 8.646 MB / 0.508 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008417/0.4785, allocations: 5.373 MB / 0.5133 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006277/0.4849, allocations: 2.662 MB / 0.5159 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007462/0.4923, allocations: 3.828 MB / 0.5196 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002554/0.4949, allocations: 0.5357 MB / 0.5202 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005398/0.5003, allocations: 1.613 MB / 0.5217 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006862/0.5073, allocations: 3.292 MB / 0.5249 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01014/0.5174, allocations: 3.772 MB / 0.5286 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.5319, allocations: 11.16 MB / 0.5395 GB, free: 2.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.5319, allocations: 0 / 0.5395 GB, free: 2.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5319, allocations: 0 / 0.5395 GB, free: 2.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005205/0.5325, allocations: 1.781 kB / 0.5395 GB, free: 2.98 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.03007/0.5625, allocations: 8.478 MB / 0.5478 GB, free: 12.9 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/0.5626, allocations: 16.03 kB / 0.5478 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004783/0.5674, allocations: 1.074 MB / 0.5489 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1758/0.7433, allocations: 12.9 MB / 0.5615 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/0.7602, allocations: 6.062 MB / 0.5674 GB, free: 9.082 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004667/0.7607, allocations: 367.2 kB / 0.5677 GB, free: 8.773 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002869/0.7636, allocations: 0.5176 MB / 0.5683 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04023/0.8038, allocations: 16.11 MB / 0.584 GB, free: 7.422 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004458/0.8043, allocations: 84.05 kB / 0.5841 GB, free: 7.371 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002207/0.8065, allocations: 238.5 kB / 0.5843 GB, free: 7.191 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005725/0.8123, allocations: 2.921 MB / 0.5871 GB, free: 4.312 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03432/0.8466, allocations: 13.46 MB / 0.6003 GB, free: 7.121 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.1088/0.9555, allocations: 64.17 MB / 0.663 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02516/0.9807, allocations: 7.767 MB / 0.6705 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006792/0.9875, allocations: 4.131 MB / 0.6746 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03583/1.023, allocations: 18.79 MB / 0.6929 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.032e-05/1.024, allocations: 71.25 kB / 0.693 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=287): time 6.582e-06/1.024, allocations: 4 kB / 0.693 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of matching and sorting (n=370): time 0.474/1.498, allocations: 50.69 MB / 0.7425 GB, free: 183.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.876e-05/1.498, allocations: 264.4 kB / 0.7428 GB, free: 183.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007392/1.505, allocations: 6.071 MB / 0.7487 GB, free: 181.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000735/1.506, allocations: 84.77 kB / 0.7488 GB, free: 181.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002268/1.508, allocations: 4.744 MB / 0.7534 GB, free: 177.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001456/1.51, allocations: 1.36 MB / 0.7547 GB, free: 176.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/1.512, allocations: 1.826 MB / 0.7565 GB, free: 175.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.617e-05/1.512, allocations: 308.7 kB / 0.7568 GB, free: 175.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004724/1.517, allocations: 3.931 MB / 0.7606 GB, free: 174 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006716/1.523, allocations: 9.167 MB / 0.7696 GB, free: 164.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01307/1.536, allocations: 14.15 MB / 0.7834 GB, free: 147.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001413/1.537, allocations: 56 kB / 0.7835 GB, free: 147.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03318/1.57, allocations: 16.38 MB / 0.7995 GB, free: 130.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000209/1.57, allocations: 86.81 kB / 0.7995 GB, free: 130.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002351/1.57, allocations: 188.1 kB / 0.7997 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01196/1.582, allocations: 4.042 MB / 0.8037 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006976/1.589, allocations: 2.066 MB / 0.8057 GB, free: 124.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0299/1.619, allocations: 23.53 MB / 0.8287 GB, free: 100.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007774/1.627, allocations: 0.4993 MB / 0.8292 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001767/1.629, allocations: 0.537 MB / 0.8297 GB, free: 99.73 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 (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.006555/1.635, allocations: 3.105 MB / 0.8327 GB, free: 96.61 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/1.637, allocations: 0.5824 MB / 0.8333 GB, free: 96.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/1.656, allocations: 9.83 MB / 0.8429 GB, free: 86.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.601e-05/1.656, allocations: 40 kB / 0.8429 GB, free: 86.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-05/1.656, allocations: 16 kB / 0.8429 GB, free: 86.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.503e-05/1.656, allocations: 17.02 kB / 0.843 GB, free: 86.05 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0312/1.687, allocations: 19.56 MB / 0.8621 GB, free: 66.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.663e-05/1.687, allocations: 0 / 0.8621 GB, free: 66.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00263/1.69, allocations: 0.546 MB / 0.8626 GB, free: 65.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01023/1.7, allocations: 3.63 MB / 0.8661 GB, free: 62.22 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000493/1.7, allocations: 62.27 kB / 0.8662 GB, free: 62.16 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02391/1.724, allocations: 21.38 MB / 0.8871 GB, free: 40.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.724, allocations: 144 / 0.8871 GB, free: 40.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02218/1.747, allocations: 14.5 MB / 0.9012 GB, free: 25.92 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/1.748, allocations: 0.5912 MB / 0.9018 GB, free: 25.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001487/1.75, allocations: 56 kB / 0.9019 GB, free: 25.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003299/1.753, allocations: 203.7 kB / 0.9021 GB, free: 25.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008615/1.754, allocations: 222.7 kB / 0.9023 GB, free: 24.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003601/1.754, allocations: 91.98 kB / 0.9024 GB, free: 24.74 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005634/1.76, allocations: 3.795 MB / 0.9061 GB, free: 20.95 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.76, allocations: 8 kB / 0.9061 GB, free: 20.94 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00794/1.768, allocations: 1.821 MB / 0.9078 GB, free: 19.13 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 (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.2837/2.052, allocations: 15.25 MB / 0.9227 GB, free: 172.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02846/2.08, allocations: 14.81 MB / 0.9372 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.879e-06/2.08, allocations: 0 / 0.9372 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005739/2.086, allocations: 3.948 MB / 0.9411 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.004918/2.091, allocations: 0.8087 MB / 0.9418 GB, free: 166.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1526/2.244, allocations: 99.79 MB / 1.039 GB, free: 68.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007849/2.251, allocations: 4.867 MB / 1.044 GB, free: 63.93 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01273/2.264, allocations: 2.79 MB / 1.047 GB, free: 61.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007755/2.272, allocations: 3.245 MB / 1.05 GB, free: 57.89 MB / 0.545 GB Notification: Performance of SimCode: time 1.343e-06/2.272, allocations: 0 / 1.05 GB, free: 57.89 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4613/2.733, allocations: 138.7 MB / 1.185 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/16.5, allocations: 7.906 kB / 1.185 GB, free: 156.8 MB / 0.5606 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)