Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.002194/0.002194, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 88.67 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.9e-05/2.903e-05, allocations: 4 kB / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1151, allocations: 50.42 MB / 394.4 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4142/0.5294, allocations: 98.77 MB / 493.1 MB, free: 4.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5298, allocations: 87.95 kB / 493.2 MB, free: 4.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.515/1.045, allocations: 95.04 MB / 0.5745 GB, free: 97.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.045, allocations: 0 / 0.5745 GB, free: 97.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001873/1.045, allocations: 93.91 kB / 0.5745 GB, free: 97.44 MB / 426.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.01712/1.062, allocations: 4.709 MB / 0.5791 GB, free: 95.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.062, allocations: 11.56 kB / 0.5792 GB, free: 95.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002668/1.065, allocations: 0.8517 MB / 0.58 GB, free: 95.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/1.078, allocations: 2.691 MB / 0.5826 GB, free: 95.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/1.092, allocations: 5.318 MB / 0.5878 GB, free: 94.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003469/1.092, allocations: 362.3 kB / 0.5882 GB, free: 94.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/1.095, allocations: 481.6 kB / 0.5886 GB, free: 94.47 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03366/1.128, allocations: 12.52 MB / 0.6008 GB, free: 89.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005731/1.129, allocations: 72.03 kB / 0.6009 GB, free: 89.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002966/1.132, allocations: 231.8 kB / 0.6011 GB, free: 89.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002363/1.134, allocations: 1.199 MB / 0.6023 GB, free: 89.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02275/1.157, allocations: 10.14 MB / 0.6122 GB, free: 86.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05909/1.216, allocations: 52.87 MB / 0.6638 GB, free: 34.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/1.227, allocations: 4.513 MB / 0.6682 GB, free: 30.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/1.229, allocations: 1.658 MB / 0.6699 GB, free: 28.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01281/1.242, allocations: 8.267 MB / 0.6779 GB, free: 19.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.242, allocations: 55.81 kB / 0.678 GB, free: 19.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 6.132e-06/1.242, allocations: 0 / 0.678 GB, free: 19.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=205): time 0.03739/1.28, allocations: 13.66 MB / 0.6913 GB, free: 5.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001169/1.281, allocations: 1.604 MB / 0.6929 GB, free: 4.223 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007984/1.289, allocations: 3.666 MB / 0.6965 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005366/1.289, allocations: 61.38 kB / 0.6965 GB, free: 484 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003612/1.293, allocations: 3.417 MB / 0.6999 GB, free: 13.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001632/1.295, allocations: 0.8081 MB / 0.7007 GB, free: 12.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001098/1.296, allocations: 132 kB / 0.7008 GB, free: 12.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000888/1.297, allocations: 0.5873 MB / 0.7014 GB, free: 11.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004677/1.301, allocations: 2.137 MB / 0.7035 GB, free: 9.422 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00849/1.31, allocations: 6.22 MB / 0.7095 GB, free: 1.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3226/1.633, allocations: 3.583 MB / 0.713 GB, free: 98.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001636/1.633, allocations: 44.61 kB / 0.7131 GB, free: 98.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.0259/1.659, allocations: 8.865 MB / 0.7217 GB, free: 97.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002194/1.659, allocations: 67.69 kB / 0.7218 GB, free: 97.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008573/1.668, allocations: 2.788 MB / 0.7245 GB, free: 97.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004317/1.672, allocations: 1.085 MB / 0.7256 GB, free: 97.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006925/1.679, allocations: 1.592 MB / 0.7271 GB, free: 97.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004682/1.684, allocations: 4.379 MB / 0.7314 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007012/1.691, allocations: 0.4981 MB / 0.7319 GB, free: 94.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/1.692, allocations: 415.5 kB / 0.7323 GB, free: 94.61 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 () * 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.001377/1.694, allocations: 0.6224 MB / 0.7329 GB, free: 94.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008603/1.695, allocations: 376.2 kB / 0.7333 GB, free: 94.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00626/1.701, allocations: 3.23 MB / 0.7364 GB, free: 94.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004577/1.706, allocations: 2.693 MB / 0.739 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/1.706, allocations: 0 / 0.739 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.346e-05/1.706, allocations: 12.53 kB / 0.739 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/1.725, allocations: 10.31 MB / 0.7491 GB, free: 90.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.822e-05/1.725, allocations: 17.52 kB / 0.7491 GB, free: 90.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/1.726, allocations: 366.8 kB / 0.7495 GB, free: 90.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002708/1.729, allocations: 0.9781 MB / 0.7504 GB, free: 90.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002591/1.729, allocations: 60.14 kB / 0.7505 GB, free: 90.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004343/1.734, allocations: 4.593 MB / 0.755 GB, free: 87.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007794/1.734, allocations: 1.48 MB / 0.7564 GB, free: 86.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009824/1.744, allocations: 7.439 MB / 0.7637 GB, free: 81.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/1.746, allocations: 449.5 kB / 0.7641 GB, free: 81.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000844/1.747, allocations: 60.77 kB / 0.7642 GB, free: 81.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002191/1.749, allocations: 180.3 kB / 0.7644 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003648/1.749, allocations: 168.4 kB / 0.7645 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001536/1.75, allocations: 80.23 kB / 0.7646 GB, free: 81.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004391/1.754, allocations: 2.516 MB / 0.767 GB, free: 80.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.754, allocations: 2.844 kB / 0.767 GB, free: 80.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007061/1.761, allocations: 1.149 MB / 0.7682 GB, free: 80.14 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 () * 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.01084/1.772, allocations: 11.36 MB / 0.7793 GB, free: 71.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/1.783, allocations: 5.732 MB / 0.7849 GB, free: 69.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.58e-05/1.783, allocations: 3.406 kB / 0.7849 GB, free: 69.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004186/1.787, allocations: 2.163 MB / 0.787 GB, free: 68.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003911/1.791, allocations: 457.7 kB / 0.7874 GB, free: 68.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03085/1.822, allocations: 10.4 MB / 0.7976 GB, free: 59.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006936/1.829, allocations: 3.553 MB / 0.801 GB, free: 56.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00662/1.835, allocations: 2.028 MB / 0.803 GB, free: 55.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004466/1.84, allocations: 2.075 MB / 0.805 GB, free: 53.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/1.84, allocations: 0 / 0.805 GB, free: 53.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4323/2.272, allocations: 82.16 MB / 0.8853 GB, free: 92.96 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/2.273, allocations: 213.8 kB / 0.8855 GB, free: 92.74 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.054/7.326, allocations: 0 / 0.8855 GB, free: 92.74 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat