Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.0008404/0.0008404, allocations: 174 kB / 16.72 MB, free: 5.078 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.21/1.21, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008024/0.0008024, allocations: 88.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1885, allocations: 47.58 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.02614/0.2146, allocations: 42.56 MB / 417.7 MB, free: 6.039 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01804/0.2327, allocations: 9.438 MB / 427.2 MB, free: 12.57 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007724/0.2405, allocations: 199.5 kB / 427.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006266/0.2468, allocations: 2.189 MB / 429.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01563/0.2625, allocations: 6.614 MB / 436.2 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002923/0.2654, allocations: 0.7372 MB / 436.9 MB, free: 2.801 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005924/0.2713, allocations: 5.259 MB / 442.2 MB, free: 13.53 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005644/0.277, allocations: 4.767 MB / 446.9 MB, free: 8.688 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001879/0.2789, allocations: 1.401 MB / 448.3 MB, free: 7.281 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002326/0.2812, allocations: 2.189 MB / 450.5 MB, free: 5.086 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004515/0.2817, allocations: 160 kB / 450.7 MB, free: 4.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.2836, allocations: 1.135 MB / 451.8 MB, free: 3.793 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.2853, allocations: 1.878 MB / 453.7 MB, free: 1.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.2874, allocations: 2.091 MB / 455.8 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005305/0.2927, allocations: 5.736 MB / 461.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.2927, allocations: 4 kB / 461.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2927, allocations: 0 / 461.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000209/0.2929, allocations: 0 / 461.5 MB, free: 10.05 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.008386/0.3013, allocations: 4.369 MB / 465.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3014, allocations: 8.031 kB / 465.9 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001362/0.3027, allocations: 0.7943 MB / 466.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007648/0.3104, allocations: 2.186 MB / 468.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006711/0.3171, allocations: 3.395 MB / 472.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.3175, allocations: 274.8 kB / 472.6 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.3189, allocations: 423.7 kB / 473 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/0.3404, allocations: 12.22 MB / 485.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.3406, allocations: 55.5 kB / 485.2 MB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005244/0.3411, allocations: 171.8 kB / 485.4 MB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00319/0.3443, allocations: 2.158 MB / 487.6 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/0.3648, allocations: 10.19 MB / 497.8 MB, free: 4.828 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1983/0.5632, allocations: 44.3 MB / 0.5294 GB, free: 74.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009748/0.573, allocations: 4.6 MB / 0.5339 GB, free: 71.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.575, allocations: 1.722 MB / 0.5355 GB, free: 70.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009621/0.5846, allocations: 8.187 MB / 0.5435 GB, free: 61.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.5847, allocations: 59.75 kB / 0.5436 GB, free: 61.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=183): time 4.739e-06/0.5847, allocations: 4 kB / 0.5436 GB, free: 61.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=205): time 0.03503/0.6198, allocations: 16.04 MB / 0.5593 GB, free: 45.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009081/0.6207, allocations: 1.605 MB / 0.5608 GB, free: 43.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004903/0.6256, allocations: 4.22 MB / 0.5649 GB, free: 39.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002925/0.626, allocations: 53.7 kB / 0.565 GB, free: 39.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001353/0.6273, allocations: 3.408 MB / 0.5683 GB, free: 36.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007361/0.6281, allocations: 0.7993 MB / 0.5691 GB, free: 35.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/0.6284, allocations: 138 kB / 0.5692 GB, free: 35.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002927/0.6287, allocations: 0.5834 MB / 0.5698 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002822/0.6315, allocations: 2.203 MB / 0.572 GB, free: 32.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004009/0.6355, allocations: 6.331 MB / 0.5781 GB, free: 24.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00753/0.6431, allocations: 9.226 MB / 0.5872 GB, free: 12.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.142e-05/0.6432, allocations: 47.94 kB / 0.5872 GB, free: 12.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01433/0.6575, allocations: 9.036 MB / 0.596 GB, free: 3.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.6577, allocations: 68 kB / 0.5961 GB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004927/0.6626, allocations: 2.838 MB / 0.5989 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003135/0.6658, allocations: 1.065 MB / 0.5999 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004981/0.6708, allocations: 1.579 MB / 0.6014 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004494/0.6753, allocations: 4.382 MB / 0.6057 GB, free: 9.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/0.6799, allocations: 423.4 kB / 0.6061 GB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000971/0.6809, allocations: 416 kB / 0.6065 GB, free: 8.617 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004564/0.6855, allocations: 2.207 MB / 0.6087 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007893/0.6862, allocations: 379.1 kB / 0.609 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006453/0.6927, allocations: 3.293 MB / 0.6123 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00497/0.6977, allocations: 2.73 MB / 0.6149 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.6977, allocations: 11.94 kB / 0.6149 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.52e-05/0.6978, allocations: 11.95 kB / 0.6149 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/0.7159, allocations: 10.34 MB / 0.625 GB, free: 5.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/0.716, allocations: 16.25 kB / 0.6251 GB, free: 5.324 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001417/0.7174, allocations: 371.4 kB / 0.6254 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002837/0.7202, allocations: 0.9864 MB / 0.6264 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002073/0.7205, allocations: 59.98 kB / 0.6264 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00462/0.7251, allocations: 4.592 MB / 0.6309 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009032/0.726, allocations: 1.476 MB / 0.6324 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008495/0.7345, allocations: 5.891 MB / 0.6381 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.736, allocations: 0.6639 MB / 0.6388 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004259/0.7364, allocations: 55.98 kB / 0.6388 GB, free: 6.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.7381, allocations: 151.8 kB / 0.639 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004192/0.7385, allocations: 172.4 kB / 0.6391 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.7386, allocations: 75.42 kB / 0.6392 GB, free: 6.195 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003691/0.7423, allocations: 2.594 MB / 0.6417 GB, free: 3.594 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7424, allocations: 4 kB / 0.6417 GB, free: 3.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005008/0.7474, allocations: 1.138 MB / 0.6428 GB, free: 2.457 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1677/0.915, allocations: 6.587 MB / 0.6493 GB, free: 139.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009746/0.9248, allocations: 5.834 MB / 0.655 GB, free: 137.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/0.9249, allocations: 5.688 kB / 0.655 GB, free: 137.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003695/0.9286, allocations: 2.19 MB / 0.6571 GB, free: 137 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009124/0.9377, allocations: 495.4 kB / 0.6576 GB, free: 136.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04889/0.9867, allocations: 38.7 MB / 0.6954 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003421/0.9901, allocations: 3.466 MB / 0.6988 GB, free: 98.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/0.9923, allocations: 2.159 MB / 0.7009 GB, free: 96.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.9923, allocations: 0 / 0.7009 GB, free: 96.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.066/9.059, allocations: 156.7 MB / 0.8539 GB, free: 114.6 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)