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.00151/0.00151, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.24/2.24, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001527/0.001527, allocations: 86.77 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.431e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 47.57 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.5548, allocations: 97.17 MB / 466.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003461/0.5552, allocations: 90.31 kB / 466.5 MB, free: 12.19 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6905/1.246, allocations: 93.97 MB / 0.5473 GB, free: 91.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.946e-06/1.246, allocations: 0 / 0.5473 GB, free: 91.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002924/1.246, allocations: 86.19 kB / 0.5474 GB, free: 91.32 MB / 410.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.02565/1.272, allocations: 4.721 MB / 0.552 GB, free: 89.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/1.272, allocations: 7.938 kB / 0.552 GB, free: 89.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003627/1.275, allocations: 0.8601 MB / 0.5528 GB, free: 89.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02168/1.297, allocations: 2.695 MB / 0.5555 GB, free: 89.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02189/1.319, allocations: 5.599 MB / 0.5609 GB, free: 88.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004251/1.32, allocations: 365.4 kB / 0.5613 GB, free: 88.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002742/1.322, allocations: 482 kB / 0.5617 GB, free: 88.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03917/1.362, allocations: 12.52 MB / 0.574 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002742/1.362, allocations: 69.59 kB / 0.574 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/1.364, allocations: 232.2 kB / 0.5742 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002875/1.367, allocations: 1.21 MB / 0.5754 GB, free: 85.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03379/1.401, allocations: 10.14 MB / 0.5853 GB, free: 82.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0806/1.481, allocations: 52.92 MB / 0.637 GB, free: 37.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01895/1.5, allocations: 4.516 MB / 0.6414 GB, free: 33.58 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003962/1.504, allocations: 1.661 MB / 0.643 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02068/1.525, allocations: 8.306 MB / 0.6511 GB, free: 24.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/1.525, allocations: 51.81 kB / 0.6512 GB, free: 24.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 6.593e-06/1.525, allocations: 0 / 0.6512 GB, free: 24.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.06074/1.586, allocations: 13.77 MB / 0.6646 GB, free: 10.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001383/1.587, allocations: 1.597 MB / 0.6662 GB, free: 8.422 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008578/1.596, allocations: 3.687 MB / 0.6698 GB, free: 4.707 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000522/1.597, allocations: 57.64 kB / 0.6699 GB, free: 4.645 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002907/1.599, allocations: 3.348 MB / 0.6731 GB, free: 1.301 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.601, allocations: 0.7967 MB / 0.6739 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000881/1.602, allocations: 136 kB / 0.674 GB, free: 388 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006288/1.602, allocations: 0.5959 MB / 0.6746 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006772/1.609, allocations: 2.137 MB / 0.6767 GB, free: 13.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.62, allocations: 6.22 MB / 0.6828 GB, free: 5.375 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/1.63, allocations: 3.595 MB / 0.6863 GB, free: 1.781 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000161/1.631, allocations: 40 kB / 0.6863 GB, free: 1.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.3356/1.966, allocations: 8.752 MB / 0.6949 GB, free: 92.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/1.966, allocations: 69.69 kB / 0.6949 GB, free: 92.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01072/1.977, allocations: 2.78 MB / 0.6977 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006597/1.984, allocations: 1.088 MB / 0.6987 GB, free: 92.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/1.994, allocations: 1.591 MB / 0.7003 GB, free: 92.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006719/2.001, allocations: 4.375 MB / 0.7045 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00895/2.01, allocations: 0.4973 MB / 0.705 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001639/2.012, allocations: 412 kB / 0.7054 GB, free: 89.83 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (845): * Single equations (assignments): 836 * 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.002521/2.014, allocations: 0.625 MB / 0.706 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009306/2.015, allocations: 377.3 kB / 0.7064 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/2.026, allocations: 3.239 MB / 0.7096 GB, free: 89.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008415/2.034, allocations: 2.686 MB / 0.7122 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.025e-05/2.034, allocations: 3.344 kB / 0.7122 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.484e-05/2.034, allocations: 7.219 kB / 0.7122 GB, free: 89.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02907/2.063, allocations: 10.31 MB / 0.7223 GB, free: 88.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.277e-05/2.063, allocations: 13.56 kB / 0.7223 GB, free: 88.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003135/2.067, allocations: 369.2 kB / 0.7226 GB, free: 88.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005255/2.072, allocations: 0.9688 MB / 0.7236 GB, free: 87.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005426/2.072, allocations: 67.59 kB / 0.7236 GB, free: 87.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007247/2.08, allocations: 4.599 MB / 0.7281 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001129/2.081, allocations: 1.483 MB / 0.7296 GB, free: 83.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01461/2.096, allocations: 7.46 MB / 0.7369 GB, free: 78.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/2.098, allocations: 0.6645 MB / 0.7375 GB, free: 78.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00119/2.1, allocations: 62.69 kB / 0.7376 GB, free: 78.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003976/2.104, allocations: 172.9 kB / 0.7377 GB, free: 78.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006997/2.104, allocations: 177.1 kB / 0.7379 GB, free: 78.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002269/2.105, allocations: 72.86 kB / 0.738 GB, free: 78.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006677/2.111, allocations: 2.539 MB / 0.7405 GB, free: 77.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.333e-06/2.111, allocations: 0 / 0.7405 GB, free: 77.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008397/2.12, allocations: 1.145 MB / 0.7416 GB, free: 77.31 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 61 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 172 * 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 {(3,100.0%),(4,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.01622/2.136, allocations: 11.37 MB / 0.7527 GB, free: 69.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01477/2.151, allocations: 5.734 MB / 0.7583 GB, free: 67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.786e-05/2.151, allocations: 0 / 0.7583 GB, free: 67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006635/2.157, allocations: 2.165 MB / 0.7604 GB, free: 66.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/2.162, allocations: 464.3 kB / 0.7608 GB, free: 65.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/2.195, allocations: 10.92 MB / 0.7715 GB, free: 58.21 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007604/2.203, allocations: 3.56 MB / 0.775 GB, free: 55.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004947/2.208, allocations: 2.132 MB / 0.7771 GB, free: 53.56 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/2.208, allocations: 4 kB / 0.7771 GB, free: 53.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.339/7.547, allocations: 160.6 MB / 0.9339 GB, free: 65.17 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat