Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001305/0.001305, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.424/1.424, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008627/0.0008628, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.631e-05/2.633e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0831/0.08314, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2946/0.3778, allocations: 97.18 MB / 467.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.3781, allocations: 85.3 kB / 467.4 MB, free: 12.31 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4359/0.814, allocations: 93.97 MB / 0.5482 GB, free: 91.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.8141, allocations: 1 kB / 0.5482 GB, free: 91.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002816/0.8143, allocations: 89.84 kB / 0.5483 GB, free: 91.35 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.01936/0.8337, allocations: 4.719 MB / 0.5529 GB, free: 89.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/0.8338, allocations: 7.719 kB / 0.5529 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003547/0.8373, allocations: 0.8644 MB / 0.5537 GB, free: 89.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01367/0.851, allocations: 2.694 MB / 0.5564 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.8651, allocations: 5.604 MB / 0.5618 GB, free: 88.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004007/0.8656, allocations: 367.9 kB / 0.5622 GB, free: 88.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002472/0.8681, allocations: 484.4 kB / 0.5627 GB, free: 88.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02779/0.8959, allocations: 12.51 MB / 0.5749 GB, free: 85.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002546/0.8962, allocations: 65.91 kB / 0.5749 GB, free: 85.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001376/0.8976, allocations: 236.8 kB / 0.5752 GB, free: 85.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001583/0.8992, allocations: 1.204 MB / 0.5763 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01975/0.9189, allocations: 10.14 MB / 0.5862 GB, free: 82.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04966/0.9686, allocations: 52.92 MB / 0.6379 GB, free: 37.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.9788, allocations: 4.513 MB / 0.6423 GB, free: 33.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/0.9808, allocations: 1.659 MB / 0.6439 GB, free: 31.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.9911, allocations: 8.303 MB / 0.6521 GB, free: 23.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.9912, allocations: 59.86 kB / 0.6521 GB, free: 23.87 MB / 410.7 MB Notification: Performance of pre-optimization done (n=183): time 5.099e-06/0.9912, allocations: 0 / 0.6521 GB, free: 23.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=205): time 0.03003/1.021, allocations: 13.77 MB / 0.6656 GB, free: 9.977 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009325/1.022, allocations: 1.597 MB / 0.6671 GB, free: 8.207 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004676/1.027, allocations: 3.695 MB / 0.6707 GB, free: 4.484 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004253/1.027, allocations: 57.8 kB / 0.6708 GB, free: 4.422 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/1.029, allocations: 3.421 MB / 0.6741 GB, free: 1.004 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008179/1.03, allocations: 0.8016 MB / 0.6749 GB, free: 216 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002322/1.03, allocations: 132 kB / 0.675 GB, free: 84 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000401/1.031, allocations: 0.5915 MB / 0.6756 GB, free: 15.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003207/1.034, allocations: 2.137 MB / 0.6777 GB, free: 13.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005839/1.04, allocations: 6.216 MB / 0.6838 GB, free: 5.094 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005759/1.045, allocations: 3.599 MB / 0.6873 GB, free: 1.492 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.282e-05/1.046, allocations: 40 kB / 0.6873 GB, free: 1.453 MB / 426.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.2543/1.3, allocations: 8.861 MB / 0.696 GB, free: 92.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.3, allocations: 71.39 kB / 0.696 GB, free: 92.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006108/1.306, allocations: 2.788 MB / 0.6988 GB, free: 92.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003945/1.31, allocations: 1.083 MB / 0.6998 GB, free: 92.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008/1.318, allocations: 1.594 MB / 0.7014 GB, free: 92.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004642/1.323, allocations: 4.374 MB / 0.7056 GB, free: 90.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006789/1.33, allocations: 0.4972 MB / 0.7061 GB, free: 90.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/1.331, allocations: 414.8 kB / 0.7065 GB, free: 90.07 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.001292/1.333, allocations: 0.6166 MB / 0.7071 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008203/1.333, allocations: 386.7 kB / 0.7075 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005825/1.339, allocations: 3.234 MB / 0.7107 GB, free: 89.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004311/1.344, allocations: 2.687 MB / 0.7133 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.344, allocations: 3.906 kB / 0.7133 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.017e-05/1.344, allocations: 11.39 kB / 0.7133 GB, free: 89.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/1.361, allocations: 10.31 MB / 0.7234 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/1.361, allocations: 13.75 kB / 0.7234 GB, free: 88.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/1.363, allocations: 365.5 kB / 0.7237 GB, free: 88.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002592/1.365, allocations: 0.9818 MB / 0.7247 GB, free: 88.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/1.365, allocations: 66.55 kB / 0.7247 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003939/1.369, allocations: 4.603 MB / 0.7292 GB, free: 85.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006951/1.37, allocations: 1.467 MB / 0.7307 GB, free: 83.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008189/1.378, allocations: 7.458 MB / 0.738 GB, free: 78.95 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/1.38, allocations: 0.6683 MB / 0.7386 GB, free: 78.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007622/1.381, allocations: 53.92 kB / 0.7387 GB, free: 78.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002012/1.383, allocations: 181.6 kB / 0.7388 GB, free: 78.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/1.383, allocations: 175.4 kB / 0.739 GB, free: 78.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/1.383, allocations: 82.91 kB / 0.7391 GB, free: 78.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00387/1.387, allocations: 2.532 MB / 0.7415 GB, free: 77.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.387, allocations: 0 / 0.7415 GB, free: 77.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006302/1.394, allocations: 1.15 MB / 0.7427 GB, free: 77.41 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.00891/1.403, allocations: 11.36 MB / 0.7538 GB, free: 69.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008567/1.411, allocations: 5.743 MB / 0.7594 GB, free: 67.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.411, allocations: 3.25 kB / 0.7594 GB, free: 67.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003316/1.415, allocations: 2.154 MB / 0.7615 GB, free: 66.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/1.417, allocations: 462.1 kB / 0.7619 GB, free: 65.97 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/1.44, allocations: 10.42 MB / 0.7721 GB, free: 58.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003224/1.443, allocations: 3.557 MB / 0.7756 GB, free: 55.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004846/1.448, allocations: 2.027 MB / 0.7775 GB, free: 54.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002723/1.451, allocations: 2.09 MB / 0.7796 GB, free: 52.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.292e-06/1.451, allocations: 0 / 0.7796 GB, free: 52.46 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3683/1.819, allocations: 82.36 MB / 0.86 GB, free: 90.46 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/1.819, allocations: 214.1 kB / 0.8602 GB, free: 90.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.076/5.895, allocations: 0.7188 kB / 0.8602 GB, free: 90.23 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat