Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",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.00155/0.00155, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.078/2.078, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001144/0.001144, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003864, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09631, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.3191/0.4155, allocations: 36.08 MB / 410.7 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02808/0.4436, allocations: 9.022 MB / 419.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009283/0.453, allocations: 176.1 kB / 419.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007283/0.4603, allocations: 1.771 MB / 421.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02201/0.4824, allocations: 5.228 MB / 426.9 MB, free: 7.035 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003639/0.486, allocations: 0.566 MB / 427.5 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005573/0.4917, allocations: 2.116 MB / 429.6 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008964/0.5007, allocations: 4.163 MB / 433.8 MB, free: 1.098 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.5034, allocations: 0.9888 MB / 434.8 MB, free: 108 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003107/0.5066, allocations: 1.269 MB / 436 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008476/0.5075, allocations: 136 kB / 436.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.5106, allocations: 0.8737 MB / 437 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002727/0.5134, allocations: 1.492 MB / 438.5 MB, free: 12.33 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.515, allocations: 0.8038 MB / 439.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009085/0.5241, allocations: 5.114 MB / 444.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.5242, allocations: 0 / 444.4 MB, free: 6.391 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.5242, allocations: 4 kB / 444.4 MB, free: 6.387 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002226/0.5244, allocations: 0 / 444.4 MB, free: 6.387 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.012/0.5364, allocations: 3.824 MB / 448.3 MB, free: 2.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.5365, allocations: 8.031 kB / 448.3 MB, free: 2.488 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002281/0.5388, allocations: 0.7234 MB / 449 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01415/0.553, allocations: 2.225 MB / 451.2 MB, free: 15.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006664/0.5597, allocations: 2.2 MB / 453.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.5601, allocations: 246.2 kB / 453.7 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.5622, allocations: 403.5 kB / 454.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03032/0.5926, allocations: 10.17 MB / 464.2 MB, free: 1.754 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001731/0.5928, allocations: 35.69 kB / 464.3 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001008/0.5938, allocations: 167.8 kB / 464.4 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005176/0.599, allocations: 1.857 MB / 466.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02965/0.6287, allocations: 8.433 MB / 474.7 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07581/0.7046, allocations: 39.47 MB / 0.5021 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01894/0.7236, allocations: 4.025 MB / 0.5061 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01932/0.7429, allocations: 7.686 MB / 0.5136 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.749e-05/0.7431, allocations: 63.5 kB / 0.5136 GB, free: 2.234 MB / 394.7 MB Notification: Performance of pre-optimization done (n=152): time 6.121e-06/0.7431, allocations: 0 / 0.5136 GB, free: 2.234 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.06122/0.8043, allocations: 12.7 MB / 0.526 GB, free: 5.285 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002048/0.8064, allocations: 1.6 MB / 0.5276 GB, free: 3.512 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2773/1.084, allocations: 3.921 MB / 0.5314 GB, free: 131.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003854/1.084, allocations: 49.45 kB / 0.5315 GB, free: 131.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002992/1.087, allocations: 3.07 MB / 0.5345 GB, free: 129.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001075/1.088, allocations: 0.6475 MB / 0.5351 GB, free: 129.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006493/1.089, allocations: 121.2 kB / 0.5352 GB, free: 129.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005023/1.09, allocations: 0.5694 MB / 0.5358 GB, free: 129 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006068/1.096, allocations: 2.026 MB / 0.5378 GB, free: 128.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008901/1.105, allocations: 5.936 MB / 0.5436 GB, free: 122.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008848/1.113, allocations: 3.38 MB / 0.5469 GB, free: 121.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002276/1.114, allocations: 43.83 kB / 0.5469 GB, free: 121.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.03895/1.153, allocations: 9.615 MB / 0.5563 GB, free: 118 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.153, allocations: 65.5 kB / 0.5563 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0207/1.174, allocations: 3.751 MB / 0.56 GB, free: 117.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02181/1.195, allocations: 2.637 MB / 0.5626 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007439/1.203, allocations: 1.363 MB / 0.5639 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/1.218, allocations: 7.472 MB / 0.5712 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006921/1.225, allocations: 401.1 kB / 0.5716 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001244/1.227, allocations: 388 kB / 0.572 GB, free: 108 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (738): * Single equations (assignments): 728 * 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: 2 * 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: 1 {3 32} Notification: Performance of prepare postOptimizeDAE: time 0.00486/1.231, allocations: 2.017 MB / 0.5739 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007731/1.232, allocations: 331.1 kB / 0.5743 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/1.243, allocations: 3.129 MB / 0.5773 GB, free: 102.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009707/1.253, allocations: 2.679 MB / 0.5799 GB, free: 99.84 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.142e-05/1.253, allocations: 4 kB / 0.5799 GB, free: 99.84 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.059e-05/1.253, allocations: 3.984 kB / 0.5799 GB, free: 99.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.279, allocations: 8.563 MB / 0.5883 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-05/1.279, allocations: 3.938 kB / 0.5883 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001778/1.28, allocations: 195.7 kB / 0.5885 GB, free: 91.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008184/1.289, allocations: 1.441 MB / 0.5899 GB, free: 89.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/1.289, allocations: 31.98 kB / 0.5899 GB, free: 89.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009103/1.298, allocations: 5.787 MB / 0.5956 GB, free: 83.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001145/1.299, allocations: 1.468 MB / 0.597 GB, free: 81.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/1.314, allocations: 5.371 MB / 0.6023 GB, free: 76.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/1.315, allocations: 384.6 kB / 0.6026 GB, free: 76.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.316, allocations: 38.5 kB / 0.6027 GB, free: 75.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/1.319, allocations: 123.8 kB / 0.6028 GB, free: 75.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005716/1.32, allocations: 96.81 kB / 0.6029 GB, free: 75.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/1.32, allocations: 39.98 kB / 0.6029 GB, free: 75.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005454/1.326, allocations: 2.428 MB / 0.6053 GB, free: 73.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.326, allocations: 0 / 0.6053 GB, free: 73.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007353/1.333, allocations: 1.046 MB / 0.6063 GB, free: 72.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * 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: 2 * 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: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01378/1.347, allocations: 6.011 MB / 0.6122 GB, free: 66.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/1.361, allocations: 5.441 MB / 0.6175 GB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/1.361, allocations: 0 / 0.6175 GB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006726/1.368, allocations: 2.013 MB / 0.6194 GB, free: 58.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/1.371, allocations: 371 kB / 0.6198 GB, free: 58.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3931/1.764, allocations: 130.7 MB / 0.7475 GB, free: 89.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00564/1.77, allocations: 3.201 MB / 0.7506 GB, free: 87.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003615/1.773, allocations: 1.815 MB / 0.7524 GB, free: 86.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.383e-06/1.773, allocations: 0 / 0.7524 GB, free: 86.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.972/6.745, allocations: 159.9 MB / 0.9085 GB, free: 108.3 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat