Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009807/0.0009806, allocations: 193.1 kB / 16.1 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007781/0.000778, allocations: 96.44 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3036/0.3036, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.0003331, allocations: 15.94 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2959, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.02991/0.3258, allocations: 46.15 MB / 0.561 GB, free: 4.109 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0221/0.3479, allocations: 10.18 MB / 0.571 GB, free: 13.17 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01223/0.3602, allocations: 217.5 kB / 0.5712 GB, free: 13.13 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007903/0.3682, allocations: 2.389 MB / 0.5735 GB, free: 12.28 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01941/0.3876, allocations: 7.207 MB / 0.5805 GB, free: 7.137 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003949/0.3916, allocations: 0.8387 MB / 0.5814 GB, free: 6.297 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008194/0.3998, allocations: 6.215 MB / 0.5874 GB, free: 64 kB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007528/0.4074, allocations: 5.173 MB / 0.5925 GB, free: 10.79 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.4107, allocations: 1.53 MB / 0.594 GB, free: 9.258 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004063/0.4148, allocations: 2.45 MB / 0.5964 GB, free: 6.801 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00101/0.4159, allocations: 176 kB / 0.5965 GB, free: 6.629 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00285/0.4187, allocations: 1.041 MB / 0.5976 GB, free: 5.586 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002449/0.4212, allocations: 2.053 MB / 0.5996 GB, free: 3.527 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003208/0.4244, allocations: 2.239 MB / 0.6017 GB, free: 1.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006871/0.4313, allocations: 6.085 MB / 0.6077 GB, free: 11.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4314, allocations: 3.938 kB / 0.6077 GB, free: 11.17 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4314, allocations: 0 / 0.6077 GB, free: 11.17 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002582/0.4316, allocations: 0 / 0.6077 GB, free: 11.17 MB / 426.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.01082/0.4425, allocations: 4.881 MB / 0.6125 GB, free: 6.219 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4425, allocations: 8.031 kB / 0.6125 GB, free: 6.211 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001986/0.4445, allocations: 0.8189 MB / 0.6133 GB, free: 5.383 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/0.4547, allocations: 2.525 MB / 0.6157 GB, free: 2.848 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006413/0.4612, allocations: 3.402 MB / 0.6191 GB, free: 15.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002514/0.4615, allocations: 295.1 kB / 0.6193 GB, free: 15.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001841/0.4633, allocations: 0.593 MB / 0.6199 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/0.4852, allocations: 12.12 MB / 0.6317 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/0.4854, allocations: 51.53 kB / 0.6318 GB, free: 1.527 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006157/0.486, allocations: 179.8 kB / 0.632 GB, free: 1.352 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003551/0.4896, allocations: 2.139 MB / 0.6341 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/0.5115, allocations: 10.73 MB / 0.6445 GB, free: 4.457 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3083/0.8198, allocations: 47.65 MB / 0.6911 GB, free: 100 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/0.8334, allocations: 5.395 MB / 0.6963 GB, free: 99.29 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003057/0.8365, allocations: 2.485 MB / 0.6988 GB, free: 98.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/0.8526, allocations: 12.19 MB / 0.7107 GB, free: 92.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/0.8527, allocations: 60.23 kB / 0.7107 GB, free: 92.05 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 5.21e-06/0.8527, allocations: 1.5 kB / 0.7107 GB, free: 92.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.05831/0.9111, allocations: 25.31 MB / 0.7354 GB, free: 82.73 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002178/0.9133, allocations: 4.571 MB / 0.7399 GB, free: 78.08 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005318/0.9186, allocations: 4.539 MB / 0.7443 GB, free: 75.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005494/0.9192, allocations: 62.06 kB / 0.7444 GB, free: 75.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001634/0.9208, allocations: 3.528 MB / 0.7478 GB, free: 72.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.9219, allocations: 1.019 MB / 0.7488 GB, free: 71.24 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/0.9222, allocations: 151.8 kB / 0.749 GB, free: 71.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002966/0.9225, allocations: 0.6282 MB / 0.7496 GB, free: 70.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/0.9265, allocations: 3.165 MB / 0.7527 GB, free: 67.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005422/0.9319, allocations: 7.473 MB / 0.76 GB, free: 57.84 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009778/0.9417, allocations: 11.3 MB / 0.771 GB, free: 44.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001074/0.9419, allocations: 44 kB / 0.7711 GB, free: 44.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=991) (initialization): time 0.02335/0.9652, allocations: 13.36 MB / 0.7841 GB, free: 31.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.011e-05/0.9654, allocations: 71.94 kB / 0.7842 GB, free: 30.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01243/0.9778, allocations: 6.706 MB / 0.7907 GB, free: 24.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009932/0.9878, allocations: 3.395 MB / 0.794 GB, free: 20.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004761/0.9926, allocations: 1.696 MB / 0.7957 GB, free: 19.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01586/1.008, allocations: 18.46 MB / 0.8137 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006562/1.015, allocations: 0.6472 MB / 0.8144 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.017, allocations: 455.8 kB / 0.8148 GB, free: 14.44 MB / 0.4948 GB 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.005073/1.022, allocations: 2.343 MB / 0.8171 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0011/1.023, allocations: 414.7 kB / 0.8175 GB, free: 11.67 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01614/1.039, allocations: 7.316 MB / 0.8246 GB, free: 4.277 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01503/1.054, allocations: 6.645 MB / 0.8311 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.042e-05/1.054, allocations: 16.12 kB / 0.8311 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.474e-05/1.054, allocations: 15.95 kB / 0.8311 GB, free: 13.51 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03133/1.086, allocations: 15.6 MB / 0.8464 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/1.086, allocations: 8.656 kB / 0.8464 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/1.088, allocations: 447.3 kB / 0.8468 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01059/1.098, allocations: 3.395 MB / 0.8501 GB, free: 9.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000577/1.099, allocations: 79.88 kB / 0.8502 GB, free: 9.762 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02098/1.12, allocations: 19.11 MB / 0.8689 GB, free: 5.598 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002798/1.123, allocations: 4.429 MB / 0.8732 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01954/1.142, allocations: 10.84 MB / 0.8838 GB, free: 5.688 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/1.143, allocations: 487.5 kB / 0.8842 GB, free: 5.188 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001041/1.145, allocations: 67.97 kB / 0.8843 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00299/1.148, allocations: 299.5 kB / 0.8846 GB, free: 4.828 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009435/1.148, allocations: 213.4 kB / 0.8848 GB, free: 4.621 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003094/1.149, allocations: 79.95 kB / 0.8849 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.004609/1.153, allocations: 2.812 MB / 0.8876 GB, free: 1.73 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.4e-07/1.153, allocations: 0 / 0.8876 GB, free: 1.73 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007041/1.16, allocations: 1.521 MB / 0.8891 GB, free: 220 kB / 0.5573 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.2295/1.39, allocations: 11.53 MB / 0.9004 GB, free: 186.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01476/1.405, allocations: 9.55 MB / 0.9097 GB, free: 182.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/1.405, allocations: 1.281 kB / 0.9097 GB, free: 182.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009067/1.414, allocations: 4.899 MB / 0.9145 GB, free: 180.2 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007422/1.421, allocations: 0.5324 MB / 0.915 GB, free: 180 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07847/1.5, allocations: 49.76 MB / 0.9636 GB, free: 146.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005249/1.505, allocations: 3.7 MB / 0.9672 GB, free: 142.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003068/1.508, allocations: 2.335 MB / 0.9695 GB, free: 140.5 MB / 0.5573 GB Notification: Performance of SimCode: time 9.12e-07/1.508, allocations: 1.969 kB / 0.9695 GB, free: 140.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.25/13.75, allocations: 358.1 MB / 1.319 GB, free: 182.9 MB / 0.5573 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1)