Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001251/0.001251, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.2 MB / 245 MB, free: 7.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008588/0.0008587, allocations: 105.4 kB / 297.3 MB, free: 6.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002621, allocations: 8 kB / 358 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2234, allocations: 51.49 MB / 409.5 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.3643, allocations: 99.49 MB / 0.4971 GB, free: 7.105 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.3646, allocations: 91.95 kB / 0.4972 GB, free: 7.016 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4338/0.7984, allocations: 97.23 MB / 0.5921 GB, free: 17.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.7985, allocations: 0 / 0.5921 GB, free: 17.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002696/0.7987, allocations: 95.98 kB / 0.5922 GB, free: 17.82 MB / 378.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.01723/0.816, allocations: 5.051 MB / 0.5971 GB, free: 12.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.8161, allocations: 8.031 kB / 0.5971 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002804/0.8189, allocations: 0.8567 MB / 0.598 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/0.8301, allocations: 2.747 MB / 0.6007 GB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01156/0.8417, allocations: 4.7 MB / 0.6052 GB, free: 4.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003256/0.8421, allocations: 365.5 kB / 0.6056 GB, free: 3.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001859/0.8439, allocations: 479.8 kB / 0.606 GB, free: 3.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/0.8679, allocations: 12.66 MB / 0.6184 GB, free: 5.648 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.8681, allocations: 75.33 kB / 0.6185 GB, free: 5.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007127/0.8688, allocations: 231.9 kB / 0.6187 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001947/0.8708, allocations: 1.202 MB / 0.6199 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0218/0.8926, allocations: 10.41 MB / 0.63 GB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3174/1.21, allocations: 52.86 MB / 0.6817 GB, free: 59.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009975/1.22, allocations: 4.55 MB / 0.6861 GB, free: 58.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/1.231, allocations: 8.267 MB / 0.6942 GB, free: 56.31 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/1.231, allocations: 58.05 kB / 0.6942 GB, free: 56.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=183): time 3.988e-06/1.231, allocations: 0 / 0.6942 GB, free: 56.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=205): time 0.03384/1.264, allocations: 16.07 MB / 0.7099 GB, free: 52.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001034/1.266, allocations: 1.617 MB / 0.7115 GB, free: 51.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/1.27, allocations: 3.772 MB / 0.7152 GB, free: 50.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/1.271, allocations: 54.05 kB / 0.7153 GB, free: 50.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001638/1.272, allocations: 3.403 MB / 0.7186 GB, free: 48.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/1.273, allocations: 0.8133 MB / 0.7194 GB, free: 48.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/1.273, allocations: 137.3 kB / 0.7195 GB, free: 48.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002945/1.273, allocations: 0.5923 MB / 0.7201 GB, free: 48.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/1.276, allocations: 2.24 MB / 0.7223 GB, free: 48.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005246/1.282, allocations: 6.332 MB / 0.7285 GB, free: 42.78 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004576/1.286, allocations: 3.654 MB / 0.732 GB, free: 42.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.293e-05/1.286, allocations: 45.34 kB / 0.7321 GB, free: 42.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.01385/1.3, allocations: 9.097 MB / 0.7409 GB, free: 39.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.89e-05/1.3, allocations: 67.03 kB / 0.741 GB, free: 39.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004527/1.305, allocations: 2.812 MB / 0.7438 GB, free: 39.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002994/1.308, allocations: 1.081 MB / 0.7448 GB, free: 38.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005113/1.313, allocations: 1.596 MB / 0.7464 GB, free: 38.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004006/1.317, allocations: 4.453 MB / 0.7507 GB, free: 35.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005559/1.322, allocations: 0.4981 MB / 0.7512 GB, free: 35.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/1.324, allocations: 410.5 kB / 0.7516 GB, free: 35.42 MB / 442.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 () * Number of clocked 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.00487/1.329, allocations: 2.205 MB / 0.7537 GB, free: 33.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/1.33, allocations: 375.1 kB / 0.7541 GB, free: 33.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006469/1.336, allocations: 3.269 MB / 0.7573 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004375/1.341, allocations: 2.714 MB / 0.7599 GB, free: 28.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/1.341, allocations: 4 kB / 0.76 GB, free: 28.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.301e-05/1.341, allocations: 9.078 kB / 0.76 GB, free: 28.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02016/1.361, allocations: 10.34 MB / 0.7701 GB, free: 20.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.802e-05/1.361, allocations: 19.83 kB / 0.7701 GB, free: 20.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/1.362, allocations: 368.5 kB / 0.7704 GB, free: 19.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002623/1.365, allocations: 0.983 MB / 0.7714 GB, free: 19.09 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002623/1.365, allocations: 61.44 kB / 0.7714 GB, free: 19.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003904/1.369, allocations: 4.69 MB / 0.776 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007108/1.37, allocations: 1.485 MB / 0.7775 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008248/1.378, allocations: 7.5 MB / 0.7848 GB, free: 5.844 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/1.379, allocations: 441.6 kB / 0.7852 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008193/1.38, allocations: 59.84 kB / 0.7853 GB, free: 5.352 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002155/1.382, allocations: 184.3 kB / 0.7855 GB, free: 5.234 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/1.383, allocations: 175.6 kB / 0.7856 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/1.383, allocations: 74.2 kB / 0.7857 GB, free: 5.047 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004711/1.388, allocations: 2.616 MB / 0.7883 GB, free: 2.898 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.388, allocations: 0 / 0.7883 GB, free: 2.898 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006183/1.394, allocations: 1.154 MB / 0.7894 GB, free: 1.758 MB / 442.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 () * Number of clocked 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.01075/1.405, allocations: 11.42 MB / 0.8005 GB, free: 6.742 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/1.415, allocations: 5.857 MB / 0.8062 GB, free: 1.621 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.659e-05/1.416, allocations: 4 kB / 0.8062 GB, free: 1.617 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005275/1.421, allocations: 2.294 MB / 0.8085 GB, free: 0 / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00379/1.425, allocations: 481.8 kB / 0.8089 GB, free: 15.63 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3329/1.758, allocations: 137.6 MB / 0.9433 GB, free: 72.01 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003947/1.762, allocations: 3.554 MB / 0.9468 GB, free: 71.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004835/1.766, allocations: 2.028 MB / 0.9488 GB, free: 71.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/1.769, allocations: 2.07 MB / 0.9508 GB, free: 71.17 MB / 0.4948 GB Notification: Performance of SimCode: time 1.202e-06/1.769, allocations: 3.969 kB / 0.9508 GB, free: 71.17 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1276/1.896, allocations: 81.86 MB / 1.031 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/1.897, allocations: 242.8 kB / 1.031 GB, free: 21.28 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.394/6.291, allocations: 0 / 1.031 GB, free: 21.28 MB / 0.4948 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat