Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001345/0.001345, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007829/0.0007832, allocations: 93.48 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3124/0.3124, allocations: 43.57 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003446, allocations: 12 kB / 432.1 MB, free: 5.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1054, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.209/0.3144, allocations: 46.17 MB / 0.5245 GB, free: 17.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02008/0.3345, allocations: 10.16 MB / 0.5344 GB, free: 10.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008482/0.343, allocations: 218.3 kB / 0.5346 GB, free: 10.43 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006651/0.3497, allocations: 2.387 MB / 0.537 GB, free: 9.574 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01645/0.3662, allocations: 7.217 MB / 0.544 GB, free: 6.551 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003774/0.37, allocations: 0.8438 MB / 0.5448 GB, free: 6.223 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008146/0.3781, allocations: 6.069 MB / 0.5508 GB, free: 4.266 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007287/0.3855, allocations: 5.204 MB / 0.5558 GB, free: 2.176 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.3888, allocations: 1.522 MB / 0.5573 GB, free: 1.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003697/0.3925, allocations: 2.472 MB / 0.5597 GB, free: 344 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008349/0.3934, allocations: 177.6 kB / 0.5599 GB, free: 340 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002401/0.3958, allocations: 1.055 MB / 0.5609 GB, free: 15.87 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00219/0.398, allocations: 2.062 MB / 0.563 GB, free: 14.76 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002464/0.4005, allocations: 2.248 MB / 0.5651 GB, free: 13.14 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006081/0.4066, allocations: 6.107 MB / 0.5711 GB, free: 7.988 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4066, allocations: 4 kB / 0.5711 GB, free: 7.984 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4066, allocations: 0 / 0.5711 GB, free: 7.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001858/0.4068, allocations: 0 / 0.5711 GB, free: 7.984 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.009842/0.4166, allocations: 4.908 MB / 0.5759 GB, free: 3.008 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4167, allocations: 8.031 kB / 0.5759 GB, free: 3 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001223/0.4179, allocations: 0.8227 MB / 0.5767 GB, free: 2.168 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009121/0.427, allocations: 2.382 MB / 0.579 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007199/0.4343, allocations: 4.157 MB / 0.5831 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002277/0.4345, allocations: 299.1 kB / 0.5834 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/0.4361, allocations: 0.5969 MB / 0.584 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0207/0.4568, allocations: 12.1 MB / 0.5958 GB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.457, allocations: 63.52 kB / 0.5959 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004711/0.4575, allocations: 175.8 kB / 0.596 GB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003104/0.4606, allocations: 2.131 MB / 0.5981 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02028/0.4809, allocations: 10.73 MB / 0.6086 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06182/0.5428, allocations: 47.69 MB / 0.6552 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01558/0.5584, allocations: 5.399 MB / 0.6604 GB, free: 10.16 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003546/0.562, allocations: 2.496 MB / 0.6629 GB, free: 7.652 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2075/0.7695, allocations: 12.19 MB / 0.6748 GB, free: 135 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.7696, allocations: 58.05 kB / 0.6748 GB, free: 135 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 5.009e-06/0.7696, allocations: 0 / 0.6748 GB, free: 135 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.05414/0.8238, allocations: 25.48 MB / 0.6997 GB, free: 127.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002251/0.8261, allocations: 4.571 MB / 0.7042 GB, free: 122.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005768/0.8319, allocations: 4.576 MB / 0.7086 GB, free: 121 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000584/0.8325, allocations: 64.67 kB / 0.7087 GB, free: 121 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002146/0.8346, allocations: 3.539 MB / 0.7122 GB, free: 118.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/0.8359, allocations: 1.014 MB / 0.7131 GB, free: 117.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004744/0.8364, allocations: 155.8 kB / 0.7133 GB, free: 117.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000441/0.8369, allocations: 0.6243 MB / 0.7139 GB, free: 117 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004843/0.8417, allocations: 3.163 MB / 0.717 GB, free: 116 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006261/0.848, allocations: 7.475 MB / 0.7243 GB, free: 109.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00999/0.858, allocations: 11.29 MB / 0.7353 GB, free: 100.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.794e-05/0.8581, allocations: 41.59 kB / 0.7354 GB, free: 100.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=991) (initialization): time 0.02085/0.879, allocations: 13.37 MB / 0.7484 GB, free: 93.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.437e-05/0.8791, allocations: 71.94 kB / 0.7485 GB, free: 92.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01137/0.8905, allocations: 6.706 MB / 0.755 GB, free: 86.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009489/0.9, allocations: 3.396 MB / 0.7584 GB, free: 83.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005297/0.9053, allocations: 1.692 MB / 0.76 GB, free: 81.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/0.9206, allocations: 18.46 MB / 0.778 GB, free: 62.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00726/0.9279, allocations: 0.6524 MB / 0.7787 GB, free: 61.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/0.9292, allocations: 457.3 kB / 0.7791 GB, free: 60.96 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (910): * Single equations (assignments): 888 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004209/0.9334, allocations: 2.346 MB / 0.7814 GB, free: 58.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007505/0.9342, allocations: 418.7 kB / 0.7818 GB, free: 58.19 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/0.947, allocations: 7.315 MB / 0.7889 GB, free: 50.79 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01202/0.959, allocations: 6.637 MB / 0.7954 GB, free: 44.06 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-05/0.9591, allocations: 15.69 kB / 0.7954 GB, free: 44.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.386e-05/0.9592, allocations: 13.08 kB / 0.7954 GB, free: 44.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02396/0.9831, allocations: 15.62 MB / 0.8107 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-05/0.9832, allocations: 4 kB / 0.8107 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001918/0.9851, allocations: 443.3 kB / 0.8111 GB, free: 27.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009168/0.9943, allocations: 3.398 MB / 0.8144 GB, free: 24.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004441/0.9948, allocations: 83.92 kB / 0.8145 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/1.011, allocations: 19.12 MB / 0.8332 GB, free: 4.105 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002051/1.013, allocations: 4.426 MB / 0.8375 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01874/1.031, allocations: 10.84 MB / 0.8481 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/1.033, allocations: 495.5 kB / 0.8486 GB, free: 3.695 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008165/1.034, allocations: 63.98 kB / 0.8486 GB, free: 3.633 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/1.036, allocations: 295.5 kB / 0.8489 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008314/1.037, allocations: 213.3 kB / 0.8491 GB, free: 3.137 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/1.037, allocations: 79.89 kB / 0.8492 GB, free: 3.059 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004221/1.042, allocations: 2.844 MB / 0.852 GB, free: 220 kB / 0.4948 GB Notification: Performance of sort global known variables: time 2.61e-07/1.042, allocations: 0 / 0.852 GB, free: 220 kB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006789/1.048, allocations: 1.526 MB / 0.8535 GB, free: 14.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * 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 (194): * Single equations (assignments): 178 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01864/1.067, allocations: 11.54 MB / 0.8647 GB, free: 2.945 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1817/1.249, allocations: 9.547 MB / 0.8741 GB, free: 155 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/1.249, allocations: 1.656 kB / 0.8741 GB, free: 155 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008613/1.257, allocations: 4.911 MB / 0.8789 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/1.263, allocations: 0.5402 MB / 0.8794 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07416/1.337, allocations: 49.99 MB / 0.9282 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004946/1.342, allocations: 3.708 MB / 0.9318 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002518/1.345, allocations: 2.35 MB / 0.9341 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.182e-06/1.345, allocations: 4 kB / 0.9341 GB, free: 120.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.9/13.24, allocations: 359.2 MB / 1.285 GB, free: 160.9 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1)