Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005141/0.005141, allocations: 99.73 kB / 15.73 MB, free: 5.594 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.001107/0.001107, allocations: 197.2 kB / 16.67 MB, free: 5.527 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.383/1.383, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 52.41 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 46.62 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2367/0.3432, allocations: 17.33 MB / 390.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01276/0.356, allocations: 5.492 MB / 396 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004727/0.3608, allocations: 121.6 kB / 396.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01076/0.3716, allocations: 4.365 MB / 400.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.3826, allocations: 2.837 MB / 403.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004501/0.3872, allocations: 1.467 MB / 404.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01599/0.4032, allocations: 8.15 MB / 412.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01073/0.414, allocations: 5.384 MB / 418.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006824/0.4208, allocations: 2.687 MB / 421 MB, free: 15.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00671/0.4276, allocations: 3.863 MB / 424.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002332/0.4299, allocations: 0.543 MB / 425.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005049/0.435, allocations: 1.615 MB / 427 MB, free: 9.535 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005851/0.4409, allocations: 3.402 MB / 430.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009412/0.4503, allocations: 3.666 MB / 434.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01913/0.4695, allocations: 11.23 MB / 445.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4696, allocations: 0 / 445.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.4696, allocations: 0 / 445.3 MB, free: 7.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005336/0.4701, allocations: 4 kB / 445.3 MB, free: 7.168 MB / 366.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.02551/0.4957, allocations: 8.23 MB / 453.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.4957, allocations: 12.03 kB / 453.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02757/0.5233, allocations: 3.681 MB / 457.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01537/0.5387, allocations: 5.602 MB / 462.9 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003906/0.5392, allocations: 373.4 kB / 463.2 MB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002308/0.5415, allocations: 0.5112 MB / 463.7 MB, free: 4.582 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03851/0.58, allocations: 16.24 MB / 480 MB, free: 3.273 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004963/0.5806, allocations: 83.3 kB / 480.1 MB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002873/0.5835, allocations: 235.8 kB / 480.3 MB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005077/0.5886, allocations: 2.927 MB / 483.2 MB, free: 32 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03156/0.6202, allocations: 13.7 MB / 496.9 MB, free: 2.305 MB / 414.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.3229/0.9431, allocations: 64.55 MB / 0.5483 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0233/0.9664, allocations: 7.867 MB / 0.556 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006526/0.973, allocations: 4.343 MB / 0.5602 GB, free: 132.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03013/1.003, allocations: 19.36 MB / 0.5791 GB, free: 122.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.795e-05/1.003, allocations: 66.25 kB / 0.5792 GB, free: 122.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=290): time 6.102e-06/1.003, allocations: 0 / 0.5792 GB, free: 122.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=372): time 0.1528/1.156, allocations: 49.92 MB / 0.628 GB, free: 87.45 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/1.156, allocations: 269.8 kB / 0.6282 GB, free: 87.13 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/1.166, allocations: 6.098 MB / 0.6342 GB, free: 81.02 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009302/1.167, allocations: 77.7 kB / 0.6342 GB, free: 80.94 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002481/1.17, allocations: 4.679 MB / 0.6388 GB, free: 76.26 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002275/1.172, allocations: 1.372 MB / 0.6402 GB, free: 74.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002525/1.175, allocations: 1.912 MB / 0.642 GB, free: 72.98 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.45e-05/1.175, allocations: 305.1 kB / 0.6423 GB, free: 72.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004757/1.179, allocations: 4.224 MB / 0.6464 GB, free: 68.45 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006383/1.186, allocations: 9.452 MB / 0.6557 GB, free: 56.53 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01272/1.199, allocations: 14.64 MB / 0.67 GB, free: 39.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.199, allocations: 52 kB / 0.67 GB, free: 39.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03211/1.231, allocations: 17.54 MB / 0.6871 GB, free: 21.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/1.231, allocations: 80 kB / 0.6872 GB, free: 21.72 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001906/1.231, allocations: 184 kB / 0.6874 GB, free: 21.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01322/1.244, allocations: 4.554 MB / 0.6918 GB, free: 16.97 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006985/1.251, allocations: 2.125 MB / 0.6939 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03203/1.284, allocations: 25.37 MB / 0.7187 GB, free: 5.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00751/1.291, allocations: 0.5227 MB / 0.7192 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001799/1.293, allocations: 0.5462 MB / 0.7197 GB, free: 4.137 MB / 494.1 MB 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 (1136): * Single equations (assignments): 1131 * 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%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006149/1.299, allocations: 3.134 MB / 0.7228 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.3, allocations: 0.5631 MB / 0.7233 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2367/1.537, allocations: 10.7 MB / 0.7338 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.114e-05/1.537, allocations: 38.09 kB / 0.7338 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.276e-05/1.537, allocations: 16.97 kB / 0.7338 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.812e-05/1.537, allocations: 17.98 kB / 0.7339 GB, free: 158.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04244/1.58, allocations: 20.38 MB / 0.7538 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.822e-05/1.58, allocations: 8.656 kB / 0.7538 GB, free: 153.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002769/1.583, allocations: 0.5331 MB / 0.7543 GB, free: 153.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01269/1.595, allocations: 4.182 MB / 0.7584 GB, free: 152.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006644/1.596, allocations: 62.95 kB / 0.7584 GB, free: 152.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02744/1.623, allocations: 23.13 MB / 0.781 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.624, allocations: 3.938 kB / 0.781 GB, free: 141.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/1.65, allocations: 15.63 MB / 0.7963 GB, free: 128.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004229/1.654, allocations: 1.179 MB / 0.7974 GB, free: 127.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001708/1.656, allocations: 57.22 kB / 0.7975 GB, free: 127.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003482/1.66, allocations: 227 kB / 0.7977 GB, free: 127.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008121/1.66, allocations: 222.2 kB / 0.7979 GB, free: 126.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002829/1.661, allocations: 99.92 kB / 0.798 GB, free: 126.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00529/1.666, allocations: 3.805 MB / 0.8017 GB, free: 123 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.666, allocations: 0 / 0.8017 GB, free: 123 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008037/1.674, allocations: 1.931 MB / 0.8036 GB, free: 121.1 MB / 0.4981 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 (272): * Single equations (assignments): 267 * 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.0005626/1.675, allocations: 226.3 kB / 0.8038 GB, free: 120.9 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01309/1.688, allocations: 10.53 MB / 0.8141 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.688, allocations: 3.062 kB / 0.8141 GB, free: 110.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005027/1.693, allocations: 4.124 MB / 0.8181 GB, free: 106.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004553/1.697, allocations: 0.7721 MB / 0.8189 GB, free: 105.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02558/1.723, allocations: 16.3 MB / 0.8348 GB, free: 89.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004807/1.728, allocations: 4.875 MB / 0.8396 GB, free: 84.51 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005363/1.733, allocations: 2.789 MB / 0.8423 GB, free: 81.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/1.734, allocations: 383.4 kB / 0.8427 GB, free: 81.34 MB / 0.4981 GB Notification: Performance of SimCode: time 7.92e-07/1.734, allocations: 0 / 0.8427 GB, free: 81.34 MB / 0.4981 GB Notification: Performance of Templates: time 0.32/2.054, allocations: 80.27 MB / 0.9211 GB, free: 143.6 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)