Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005021/0.005021, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001346/0.001347, allocations: 195 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.449/1.449, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3263/0.3263, allocations: 39.94 MB / 309.8 MB, free: 9.355 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.2. 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.002273/0.002273, allocations: 71.89 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3236, allocations: 56.88 MB / 492.7 MB, free: 19.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01135/0.335, allocations: 10.4 MB / 0.4913 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007961/0.343, allocations: 3.871 MB / 0.495 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.3446, allocations: 61.31 kB / 0.4951 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003949/0.3486, allocations: 2.077 MB / 0.4971 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005116/0.3538, allocations: 1.696 MB / 0.4988 GB, free: 7.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001881/0.3557, allocations: 0.7008 MB / 0.4995 GB, free: 7.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005875/0.3616, allocations: 3.805 MB / 0.5032 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002962/0.3645, allocations: 2.601 MB / 0.5057 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002062/0.3666, allocations: 1.324 MB / 0.507 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002366/0.369, allocations: 1.847 MB / 0.5088 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007105/0.3697, allocations: 269 kB / 0.5091 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002435/0.3722, allocations: 1.177 MB / 0.5102 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.3738, allocations: 1.667 MB / 0.5119 GB, free: 132 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002195/0.376, allocations: 1.901 MB / 0.5137 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008261/0.3843, allocations: 6.241 MB / 0.5198 GB, free: 8.758 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3844, allocations: 0 / 0.5198 GB, free: 8.758 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3844, allocations: 0 / 0.5198 GB, free: 8.758 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001739/0.3846, allocations: 4 kB / 0.5198 GB, free: 8.754 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.007841/0.3924, allocations: 4.34 MB / 0.5241 GB, free: 4.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3925, allocations: 11.89 kB / 0.5241 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.4082, allocations: 2.455 MB / 0.5265 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006345/0.4146, allocations: 2.5 MB / 0.5289 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.4148, allocations: 201.3 kB / 0.5291 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/0.4159, allocations: 271.9 kB / 0.5294 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01738/0.4333, allocations: 8.583 MB / 0.5377 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.4335, allocations: 35.7 kB / 0.5378 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003751/0.4338, allocations: 127.9 kB / 0.5379 GB, free: 5.469 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/0.4367, allocations: 1.743 MB / 0.5396 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.4504, allocations: 7.284 MB / 0.5467 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04385/0.4943, allocations: 34.09 MB / 0.58 GB, free: 9.266 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009228/0.5035, allocations: 3.478 MB / 0.5834 GB, free: 5.641 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002551/0.5061, allocations: 1.726 MB / 0.5851 GB, free: 3.906 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/0.5195, allocations: 7.449 MB / 0.5924 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.909e-05/0.5196, allocations: 51.55 kB / 0.5924 GB, free: 12.12 MB / 478.1 MB Notification: Performance of pre-optimization done (n=151): time 6.593e-06/0.5196, allocations: 0 / 0.5924 GB, free: 12.12 MB / 478.1 MB Notification: Performance of matching and sorting (n=188): time 0.07084/0.5904, allocations: 19.83 MB / 0.6118 GB, free: 8.148 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001859/0.5907, allocations: 205.2 kB / 0.612 GB, free: 7.906 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008365/0.5991, allocations: 3.759 MB / 0.6156 GB, free: 4.156 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003629/0.5994, allocations: 53.64 kB / 0.6157 GB, free: 4.098 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002978/0.6024, allocations: 2.913 MB / 0.6185 GB, free: 1.156 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001205/0.6036, allocations: 0.7559 MB / 0.6193 GB, free: 404 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002554/0.6062, allocations: 1.207 MB / 0.6204 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.6064, allocations: 305.1 kB / 0.6207 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003739/0.6101, allocations: 2.202 MB / 0.6229 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005911/0.616, allocations: 5.758 MB / 0.6285 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3029/0.9189, allocations: 8.588 MB / 0.6369 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001609/0.9192, allocations: 35.72 kB / 0.6369 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02445/0.9436, allocations: 9.203 MB / 0.6459 GB, free: 115.3 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.9438, allocations: 62.66 kB / 0.646 GB, free: 115.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001991/0.944, allocations: 125.9 kB / 0.6461 GB, free: 115.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006253/0.9502, allocations: 1.66 MB / 0.6477 GB, free: 115 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00537/0.9556, allocations: 1.32 MB / 0.649 GB, free: 114.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/0.9718, allocations: 9.919 MB / 0.6587 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00585/0.9777, allocations: 307.5 kB / 0.659 GB, free: 110.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006959/0.9784, allocations: 367.7 kB / 0.6593 GB, free: 110.1 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003415/0.9818, allocations: 1.899 MB / 0.6612 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009324/0.9828, allocations: 355.8 kB / 0.6615 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009458/0.9923, allocations: 4.124 MB / 0.6656 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.156e-05/0.9923, allocations: 19.78 kB / 0.6656 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.821e-05/0.9924, allocations: 8.312 kB / 0.6656 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/0.9924, allocations: 7.609 kB / 0.6656 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01635/1.009, allocations: 8.521 MB / 0.6739 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/1.009, allocations: 0.875 kB / 0.6739 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/1.01, allocations: 247.1 kB / 0.6742 GB, free: 103.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004797/1.015, allocations: 1.433 MB / 0.6756 GB, free: 103.1 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/1.015, allocations: 32.58 kB / 0.6756 GB, free: 103 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/1.026, allocations: 9.244 MB / 0.6846 GB, free: 95.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.026, allocations: 4.062 kB / 0.6846 GB, free: 95.86 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.037, allocations: 6.737 MB / 0.6912 GB, free: 89.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.039, allocations: 0.644 MB / 0.6918 GB, free: 88.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004751/1.039, allocations: 28 kB / 0.6918 GB, free: 88.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/1.041, allocations: 87.89 kB / 0.6919 GB, free: 88.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/1.041, allocations: 114.5 kB / 0.692 GB, free: 88.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/1.041, allocations: 55.66 kB / 0.6921 GB, free: 88.17 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003013/1.044, allocations: 2.332 MB / 0.6944 GB, free: 85.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.044, allocations: 0 / 0.6944 GB, free: 85.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00609/1.05, allocations: 0.9921 MB / 0.6953 GB, free: 84.87 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0005967/1.051, allocations: 177.3 kB / 0.6955 GB, free: 84.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007386/1.058, allocations: 5.417 MB / 0.7008 GB, free: 79.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.058, allocations: 0.5469 kB / 0.7008 GB, free: 79.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002149/1.061, allocations: 1.796 MB / 0.7026 GB, free: 77.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/1.063, allocations: 388.1 kB / 0.7029 GB, free: 77.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/1.077, allocations: 8.661 MB / 0.7114 GB, free: 68.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/1.08, allocations: 2.98 MB / 0.7143 GB, free: 65.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00367/1.083, allocations: 1.803 MB / 0.7161 GB, free: 63.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005643/1.084, allocations: 227.4 kB / 0.7163 GB, free: 63.38 MB / 0.4981 GB Notification: Performance of SimCode: time 1.242e-06/1.084, allocations: 0 / 0.7163 GB, free: 63.38 MB / 0.4981 GB Notification: Performance of Templates: time 0.06063/1.144, allocations: 36.29 MB / 0.7517 GB, free: 27.18 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)