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.0009563/0.0009565, 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.184/1.184, 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.0007773/0.0007775, allocations: 97.47 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003523, allocations: 16 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.186, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02299/0.209, allocations: 38.2 MB / 413.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.2228, allocations: 8.683 MB / 422.1 MB, free: 1.707 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005375/0.2282, allocations: 175.6 kB / 422.2 MB, free: 1.535 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.2328, allocations: 1.963 MB / 424.2 MB, free: 15.56 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.2457, allocations: 5.934 MB / 430.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002405/0.2481, allocations: 0.6085 MB / 430.7 MB, free: 8.996 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004872/0.253, allocations: 4.285 MB / 435 MB, free: 4.699 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005476/0.2585, allocations: 4.676 MB / 439.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.2602, allocations: 1.199 MB / 440.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001959/0.2622, allocations: 1.799 MB / 442.7 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004243/0.2627, allocations: 140 kB / 442.8 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.2643, allocations: 1.022 MB / 443.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001279/0.2656, allocations: 1.605 MB / 445.5 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001569/0.2672, allocations: 1.835 MB / 447.3 MB, free: 8.293 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004284/0.2715, allocations: 5.124 MB / 452.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2715, allocations: 0 / 452.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2715, allocations: 0 / 452.4 MB, free: 3.156 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001165/0.2717, allocations: 0 / 452.4 MB, free: 3.156 MB / 330.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.006126/0.2778, allocations: 3.762 MB / 456.2 MB, free: 15.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2779, allocations: 12.03 kB / 456.2 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009882/0.2789, allocations: 0.7236 MB / 456.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006206/0.2851, allocations: 1.926 MB / 458.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003866/0.289, allocations: 2.446 MB / 461.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.2891, allocations: 242.2 kB / 461.5 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007227/0.2899, allocations: 399.6 kB / 461.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/0.304, allocations: 10.05 MB / 472 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.15e-05/0.3041, allocations: 47.53 kB / 472 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.3045, allocations: 159.9 kB / 472.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/0.3068, allocations: 1.853 MB / 474 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/0.3208, allocations: 8.289 MB / 482.3 MB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1892/0.5101, allocations: 39.36 MB / 0.5095 GB, free: 32.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008655/0.5188, allocations: 3.995 MB / 0.5134 GB, free: 32.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001899/0.5207, allocations: 1.418 MB / 0.5147 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.5311, allocations: 7.606 MB / 0.5222 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.5312, allocations: 50.31 kB / 0.5222 GB, free: 28.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 5.029e-06/0.5312, allocations: 0.9688 kB / 0.5222 GB, free: 28.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02701/0.5582, allocations: 12.45 MB / 0.5344 GB, free: 25.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008153/0.559, allocations: 1.589 MB / 0.5359 GB, free: 24.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003824/0.5629, allocations: 3.817 MB / 0.5397 GB, free: 23.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.5631, allocations: 46.2 kB / 0.5397 GB, free: 23.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.5643, allocations: 3.116 MB / 0.5427 GB, free: 21.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004627/0.5648, allocations: 0.6478 MB / 0.5434 GB, free: 20.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/0.565, allocations: 121.8 kB / 0.5435 GB, free: 20.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.5652, allocations: 0.5632 MB / 0.544 GB, free: 20.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002339/0.5676, allocations: 1.987 MB / 0.546 GB, free: 19.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003361/0.571, allocations: 5.915 MB / 0.5518 GB, free: 12.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006482/0.5775, allocations: 8.552 MB / 0.5601 GB, free: 4.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.367e-05/0.5776, allocations: 40 kB / 0.5601 GB, free: 4.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01412/0.5917, allocations: 8.717 MB / 0.5687 GB, free: 14.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.432e-05/0.5918, allocations: 64 kB / 0.5687 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00552/0.5974, allocations: 2.793 MB / 0.5714 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00468/0.6021, allocations: 1.526 MB / 0.5729 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003674/0.6057, allocations: 1.355 MB / 0.5743 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005108/0.6109, allocations: 5.523 MB / 0.5797 GB, free: 4.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00382/0.6147, allocations: 390.7 kB / 0.58 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004998/0.6152, allocations: 388 kB / 0.5804 GB, free: 3.723 MB / 394.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 {4 31} Notification: Performance of prepare postOptimizeDAE: time 0.002542/0.6178, allocations: 2.014 MB / 0.5824 GB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/0.6182, allocations: 333.4 kB / 0.5827 GB, free: 2.129 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00612/0.6243, allocations: 3.139 MB / 0.5857 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005299/0.6297, allocations: 2.675 MB / 0.5884 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.6297, allocations: 6.344 kB / 0.5884 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.6297, allocations: 7.969 kB / 0.5884 GB, free: 12.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/0.644, allocations: 8.552 MB / 0.5967 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.567e-05/0.644, allocations: 3.984 kB / 0.5967 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008652/0.6449, allocations: 192.6 kB / 0.5969 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004458/0.6493, allocations: 1.442 MB / 0.5983 GB, free: 2.508 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/0.6496, allocations: 35.97 kB / 0.5984 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005726/0.6553, allocations: 5.696 MB / 0.6039 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008791/0.6562, allocations: 1.462 MB / 0.6053 GB, free: 10.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00848/0.6647, allocations: 5.289 MB / 0.6105 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008677/0.6656, allocations: 384.6 kB / 0.6109 GB, free: 5.211 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/0.6661, allocations: 35.98 kB / 0.6109 GB, free: 5.176 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.6674, allocations: 130.3 kB / 0.611 GB, free: 5.055 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003048/0.6677, allocations: 92.86 kB / 0.6111 GB, free: 4.965 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6678, allocations: 43.97 kB / 0.6112 GB, free: 4.922 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003265/0.6711, allocations: 2.334 MB / 0.6134 GB, free: 2.605 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6711, allocations: 0 / 0.6134 GB, free: 2.605 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004287/0.6754, allocations: 0.9995 MB / 0.6144 GB, free: 1.609 MB / 426.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.00797/0.6834, allocations: 5.762 MB / 0.6201 GB, free: 11.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00867/0.6921, allocations: 5.362 MB / 0.6253 GB, free: 6.805 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.6922, allocations: 4 kB / 0.6253 GB, free: 6.801 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003709/0.6959, allocations: 2.03 MB / 0.6273 GB, free: 4.727 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.6985, allocations: 372.8 kB / 0.6276 GB, free: 4.359 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1914/0.8898, allocations: 33.6 MB / 0.6604 GB, free: 191.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003414/0.8933, allocations: 3.114 MB / 0.6635 GB, free: 190.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001736/0.8951, allocations: 1.809 MB / 0.6652 GB, free: 190.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/0.8951, allocations: 0 / 0.6652 GB, free: 190.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.481/8.376, allocations: 157.2 MB / 0.8187 GB, free: 44.38 MB / 474.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