Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005389/0.005389, allocations: 99.8 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 185.5 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3185/0.3185, allocations: 37.99 MB / 307.9 MB, free: 10.08 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002376/0.002376, allocations: 67.91 kB / 433 MB, free: 5.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4039, allocations: 56.46 MB / 489.5 MB, free: 19.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01804/0.422, allocations: 17.36 MB / 0.4949 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01814/0.4402, allocations: 5.507 MB / 0.5003 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006213/0.4464, allocations: 117.9 kB / 0.5004 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009798/0.4563, allocations: 4.357 MB / 0.5047 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.4678, allocations: 2.746 MB / 0.5074 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005065/0.4729, allocations: 1.472 MB / 0.5088 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01717/0.4901, allocations: 8.142 MB / 0.5168 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008346/0.4985, allocations: 5.383 MB / 0.522 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006029/0.5046, allocations: 2.679 MB / 0.5246 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006977/0.5116, allocations: 3.84 MB / 0.5284 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002113/0.5137, allocations: 0.5352 MB / 0.5289 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005044/0.5188, allocations: 1.623 MB / 0.5305 GB, free: 13.6 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003832/0.5226, allocations: 3.398 MB / 0.5338 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006619/0.5293, allocations: 3.655 MB / 0.5374 GB, free: 6.516 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01832/0.5476, allocations: 11.22 MB / 0.5483 GB, free: 11.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.06e-05/0.5477, allocations: 4 kB / 0.5483 GB, free: 11.26 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.937e-06/0.5477, allocations: 3.938 kB / 0.5483 GB, free: 11.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005546/0.5483, allocations: 0 / 0.5483 GB, free: 11.25 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02482/0.5731, allocations: 8.214 MB / 0.5564 GB, free: 2.953 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.5732, allocations: 15.89 kB / 0.5564 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03062/0.6038, allocations: 3.678 MB / 0.56 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/0.6213, allocations: 5.59 MB / 0.5654 GB, free: 9.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005035/0.6219, allocations: 373.8 kB / 0.5658 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002931/0.6248, allocations: 0.5152 MB / 0.5663 GB, free: 8.688 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/0.6584, allocations: 16.24 MB / 0.5821 GB, free: 7.383 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002237/0.6587, allocations: 79.3 kB / 0.5822 GB, free: 7.305 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007347/0.6594, allocations: 235.8 kB / 0.5824 GB, free: 7.074 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005595/0.665, allocations: 2.919 MB / 0.5853 GB, free: 4.148 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03247/0.6975, allocations: 13.68 MB / 0.5987 GB, free: 6.441 MB / 478.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.4489/1.146, allocations: 64.46 MB / 0.6616 GB, free: 84.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02541/1.172, allocations: 7.825 MB / 0.6692 GB, free: 82.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007108/1.179, allocations: 4.281 MB / 0.6734 GB, free: 80.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03533/1.214, allocations: 19.29 MB / 0.6923 GB, free: 70.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.326e-05/1.215, allocations: 64.88 kB / 0.6923 GB, free: 70.28 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=284): time 7.044e-06/1.215, allocations: 1.781 kB / 0.6923 GB, free: 70.28 MB / 0.4981 GB Notification: Performance of matching and sorting (n=366): time 0.1687/1.383, allocations: 51.92 MB / 0.743 GB, free: 29.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.383, allocations: 277.3 kB / 0.7433 GB, free: 28.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007836/1.391, allocations: 6.095 MB / 0.7492 GB, free: 22.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001022/1.392, allocations: 81.7 kB / 0.7493 GB, free: 22.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002487/1.395, allocations: 4.682 MB / 0.7539 GB, free: 18.05 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001753/1.397, allocations: 1.355 MB / 0.7552 GB, free: 16.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002375/1.399, allocations: 1.901 MB / 0.7571 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.485e-05/1.399, allocations: 305.1 kB / 0.7574 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004939/1.404, allocations: 4.2 MB / 0.7615 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008506/1.412, allocations: 9.425 MB / 0.7707 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01965/1.432, allocations: 14.58 MB / 0.7849 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001654/1.432, allocations: 52 kB / 0.785 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.04188/1.474, allocations: 17.55 MB / 0.8021 GB, free: 11.62 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/1.474, allocations: 87.98 kB / 0.8022 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002282/1.475, allocations: 180.9 kB / 0.8024 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01535/1.49, allocations: 4.581 MB / 0.8068 GB, free: 6.773 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008137/1.498, allocations: 2.125 MB / 0.8089 GB, free: 4.645 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03816/1.536, allocations: 25.42 MB / 0.8337 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01009/1.547, allocations: 0.5188 MB / 0.8342 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002178/1.549, allocations: 0.5497 MB / 0.8348 GB, free: 9.879 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1130): * Single equations (assignments): 1125 * 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 {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007011/1.556, allocations: 3.117 MB / 0.8378 GB, free: 6.746 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/1.558, allocations: 0.5592 MB / 0.8384 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02342/1.581, allocations: 10.71 MB / 0.8488 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.442e-05/1.581, allocations: 44 kB / 0.8489 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.316e-05/1.581, allocations: 16 kB / 0.8489 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.563e-05/1.581, allocations: 15.94 kB / 0.8489 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3883/1.97, allocations: 20.32 MB / 0.8687 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.226e-05/1.97, allocations: 4.969 kB / 0.8687 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00338/1.973, allocations: 0.5246 MB / 0.8693 GB, free: 197.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01532/1.988, allocations: 4.233 MB / 0.8734 GB, free: 196.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001072/1.99, allocations: 67.17 kB / 0.8735 GB, free: 196.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03492/2.024, allocations: 23.11 MB / 0.896 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.046e-06/2.025, allocations: 9 kB / 0.896 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02867/2.053, allocations: 15.58 MB / 0.9112 GB, free: 181.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004619/2.058, allocations: 1.182 MB / 0.9124 GB, free: 180.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001705/2.06, allocations: 61.53 kB / 0.9125 GB, free: 180.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003935/2.064, allocations: 222.9 kB / 0.9127 GB, free: 180.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009011/2.064, allocations: 224.6 kB / 0.9129 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/2.065, allocations: 102.5 kB / 0.913 GB, free: 180.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006138/2.071, allocations: 3.802 MB / 0.9167 GB, free: 178.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.7e-07/2.071, allocations: 0 / 0.9167 GB, free: 178.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0119/2.083, allocations: 1.93 MB / 0.9186 GB, free: 178.3 MB / 0.5919 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 (266): * Single equations (assignments): 261 * 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.001266/2.084, allocations: 215.5 kB / 0.9188 GB, free: 178.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01553/2.1, allocations: 10.45 MB / 0.929 GB, free: 167.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/2.1, allocations: 3.906 kB / 0.929 GB, free: 167.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005369/2.105, allocations: 4.084 MB / 0.933 GB, free: 163.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004855/2.11, allocations: 0.7662 MB / 0.9337 GB, free: 163 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02589/2.136, allocations: 16.24 MB / 0.9496 GB, free: 146.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006323/2.142, allocations: 4.87 MB / 0.9543 GB, free: 142 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006244/2.149, allocations: 2.773 MB / 0.9571 GB, free: 139.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/2.15, allocations: 383.4 kB / 0.9574 GB, free: 138.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.383e-06/2.15, allocations: 0 / 0.9574 GB, free: 138.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1259/2.276, allocations: 81.02 MB / 1.037 GB, free: 58.01 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)