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.001497/0.001497, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001471/0.001472, allocations: 91.7 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.707e-05/2.711e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1198, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4677/0.5875, allocations: 98.75 MB / 494 MB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5878, allocations: 86.3 kB / 494.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.561/1.149, allocations: 95.3 MB / 0.5756 GB, free: 77.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.149, allocations: 1.562 kB / 0.5756 GB, free: 77.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004072/1.149, allocations: 86.34 kB / 0.5757 GB, free: 77.39 MB / 442.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.02172/1.171, allocations: 4.814 MB / 0.5804 GB, free: 76.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/1.171, allocations: 9 kB / 0.5804 GB, free: 76.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0139/1.185, allocations: 2.744 MB / 0.5831 GB, free: 76.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/1.198, allocations: 4.673 MB / 0.5876 GB, free: 75.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003062/1.199, allocations: 156.6 kB / 0.5878 GB, free: 75.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002392/1.201, allocations: 289 kB / 0.5881 GB, free: 75.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01361/1.215, allocations: 6.917 MB / 0.5948 GB, free: 75.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/1.233, allocations: 10.4 MB / 0.605 GB, free: 72.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001787/1.233, allocations: 65.53 kB / 0.605 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005891/1.234, allocations: 33.78 kB / 0.6051 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002114/1.236, allocations: 1.207 MB / 0.6062 GB, free: 72.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.055/1.291, allocations: 52.54 MB / 0.6576 GB, free: 37.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004012/1.295, allocations: 2.782 MB / 0.6603 GB, free: 35.74 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/1.297, allocations: 1.516 MB / 0.6617 GB, free: 35.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001074/1.298, allocations: 1.209 MB / 0.6629 GB, free: 34.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/1.298, allocations: 56.75 kB / 0.663 GB, free: 34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=187): time 5.31e-06/1.298, allocations: 2.25 kB / 0.663 GB, free: 34 MB / 442.7 MB Notification: Performance of matching and sorting (n=203): time 0.02477/1.323, allocations: 11.96 MB / 0.6747 GB, free: 28.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/1.323, allocations: 149.3 kB / 0.6748 GB, free: 28.77 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004771/1.328, allocations: 3.194 MB / 0.6779 GB, free: 27.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003853/1.328, allocations: 29.3 kB / 0.678 GB, free: 27.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.33, allocations: 3.46 MB / 0.6813 GB, free: 24.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009175/1.331, allocations: 0.7824 MB / 0.6821 GB, free: 24.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/1.331, allocations: 0 / 0.6821 GB, free: 24.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003283/1.332, allocations: 0.602 MB / 0.6827 GB, free: 23.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002486/1.334, allocations: 2.041 MB / 0.6847 GB, free: 23.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004265/1.338, allocations: 6.249 MB / 0.6908 GB, free: 16.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00437/1.343, allocations: 3.508 MB / 0.6942 GB, free: 15.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/1.343, allocations: 44.97 kB / 0.6942 GB, free: 15.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=908) (initialization): time 0.01322/1.356, allocations: 8.081 MB / 0.7021 GB, free: 12.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.361e-05/1.356, allocations: 70.56 kB / 0.7022 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00422/1.361, allocations: 2.669 MB / 0.7048 GB, free: 11.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002935/1.364, allocations: 1.073 MB / 0.7059 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004988/1.368, allocations: 1.64 MB / 0.7075 GB, free: 11.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003855/1.372, allocations: 4.24 MB / 0.7116 GB, free: 24.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006076/1.378, allocations: 380.1 kB / 0.712 GB, free: 24.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00148/1.38, allocations: 428.9 kB / 0.7124 GB, free: 24.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * 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 (870): * Single equations (assignments): 861 * 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.002444/1.382, allocations: 496.4 kB / 0.7128 GB, free: 23.98 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006729/1.389, allocations: 3.35 MB / 0.7161 GB, free: 21.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.39, allocations: 347.5 kB / 0.7165 GB, free: 20.85 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006825/1.397, allocations: 3.029 MB / 0.7194 GB, free: 18.47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004394/1.402, allocations: 2.538 MB / 0.7219 GB, free: 16.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/1.402, allocations: 4 kB / 0.7219 GB, free: 16.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-05/1.402, allocations: 14.8 kB / 0.7219 GB, free: 16.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02366/1.425, allocations: 9.383 MB / 0.7311 GB, free: 8.828 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.767e-05/1.425, allocations: 8 kB / 0.7311 GB, free: 8.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/1.427, allocations: 361.1 kB / 0.7314 GB, free: 8.527 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00301/1.43, allocations: 0.9613 MB / 0.7324 GB, free: 7.891 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/1.431, allocations: 39.78 kB / 0.7324 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005364/1.436, allocations: 4.47 MB / 0.7368 GB, free: 3.738 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00119/1.437, allocations: 1.412 MB / 0.7381 GB, free: 2.258 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3438/1.781, allocations: 6.924 MB / 0.7449 GB, free: 81.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.783, allocations: 403.5 kB / 0.7453 GB, free: 81.47 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009553/1.784, allocations: 27.81 kB / 0.7453 GB, free: 81.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002348/1.786, allocations: 146.1 kB / 0.7455 GB, free: 81.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004194/1.786, allocations: 162.1 kB / 0.7456 GB, free: 81.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/1.787, allocations: 77.12 kB / 0.7457 GB, free: 81.47 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004495/1.791, allocations: 2.096 MB / 0.7477 GB, free: 81.32 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.791, allocations: 2.625 kB / 0.7477 GB, free: 81.32 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007479/1.799, allocations: 1.01 MB / 0.7487 GB, free: 81.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 14 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 (177): * Single equations (assignments): 170 * 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.01035/1.809, allocations: 10.41 MB / 0.7589 GB, free: 75.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01064/1.82, allocations: 5.442 MB / 0.7642 GB, free: 75.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.282e-05/1.82, allocations: 5.406 kB / 0.7642 GB, free: 75.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003984/1.824, allocations: 2.097 MB / 0.7662 GB, free: 74.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003315/1.827, allocations: 370.1 kB / 0.7666 GB, free: 74.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02916/1.856, allocations: 10.06 MB / 0.7764 GB, free: 72.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006336/1.863, allocations: 3.546 MB / 0.7799 GB, free: 71.75 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006344/1.869, allocations: 2.093 MB / 0.7819 GB, free: 71.64 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003978/1.873, allocations: 2.06 MB / 0.7839 GB, free: 71.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.383e-06/1.873, allocations: 0.9688 kB / 0.7839 GB, free: 71.64 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1357/2.009, allocations: 76.18 MB / 0.8583 GB, free: 44.07 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/2.009, allocations: 166.8 kB / 0.8585 GB, free: 43.87 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.919/6.928, allocations: 0 / 0.8585 GB, free: 43.87 MB / 458.7 MB (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