Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",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.001504/0.001504, allocations: 174.8 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.449/1.449, allocations: 221.4 MB / 235.5 MB, free: 2.949 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.0009642/0.0009642, allocations: 91.86 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.688e-05/2.692e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1417, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5926, allocations: 102 MB / 496.4 MB, free: 1.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.593, allocations: 83.95 kB / 496.5 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6149/1.208, allocations: 120.6 MB / 0.6026 GB, free: 95.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.208, allocations: 0 / 0.6026 GB, free: 95.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003256/1.208, allocations: 116 kB / 0.6027 GB, free: 95.19 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: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.03114/1.239, allocations: 6.742 MB / 0.6093 GB, free: 91.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.24, allocations: 8.938 kB / 0.6093 GB, free: 91.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005754/1.245, allocations: 1.089 MB / 0.6104 GB, free: 90.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/1.263, allocations: 3.48 MB / 0.6138 GB, free: 89.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0186/1.282, allocations: 7.294 MB / 0.6209 GB, free: 82.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004665/1.282, allocations: 457.5 kB / 0.6213 GB, free: 82.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003756/1.286, allocations: 0.6095 MB / 0.6219 GB, free: 82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04422/1.33, allocations: 17.49 MB / 0.639 GB, free: 63.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002713/1.331, allocations: 75.28 kB / 0.6391 GB, free: 63.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001555/1.332, allocations: 292.2 kB / 0.6393 GB, free: 62.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00276/1.335, allocations: 1.642 MB / 0.6409 GB, free: 61.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03484/1.37, allocations: 14.98 MB / 0.6556 GB, free: 46.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4282/1.798, allocations: 67.49 MB / 0.7215 GB, free: 58.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02134/1.82, allocations: 6.968 MB / 0.7283 GB, free: 57.1 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006352/1.826, allocations: 3.124 MB / 0.7313 GB, free: 57.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02866/1.855, allocations: 14.53 MB / 0.7455 GB, free: 53.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.445e-05/1.855, allocations: 69.16 kB / 0.7456 GB, free: 53.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=289): time 6.673e-06/1.855, allocations: 0 / 0.7456 GB, free: 53.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=321): time 0.06443/1.919, allocations: 21.1 MB / 0.7662 GB, free: 49.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003246/1.923, allocations: 4.576 MB / 0.7707 GB, free: 45.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009293/1.932, allocations: 4.438 MB / 0.775 GB, free: 43.46 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001041/1.933, allocations: 73.92 kB / 0.7751 GB, free: 43.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003102/1.936, allocations: 4.179 MB / 0.7792 GB, free: 40.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001945/1.938, allocations: 1.245 MB / 0.7804 GB, free: 39.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/1.939, allocations: 171.8 kB / 0.7805 GB, free: 39.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005184/1.94, allocations: 0.6839 MB / 0.7812 GB, free: 38.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006268/1.946, allocations: 3.413 MB / 0.7845 GB, free: 37.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01006/1.956, allocations: 8.337 MB / 0.7927 GB, free: 29.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009113/1.965, allocations: 5.216 MB / 0.7978 GB, free: 28.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002265/1.965, allocations: 48.47 kB / 0.7978 GB, free: 28.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03155/1.997, allocations: 13.83 MB / 0.8113 GB, free: 19.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001547/1.997, allocations: 81.25 kB / 0.8114 GB, free: 19.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01448/2.012, allocations: 6.696 MB / 0.8179 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009351/2.021, allocations: 2.881 MB / 0.8208 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007663/2.029, allocations: 2.077 MB / 0.8228 GB, free: 10.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/2.04, allocations: 12.63 MB / 0.8351 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01022/2.05, allocations: 0.8178 MB / 0.8359 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00245/2.053, allocations: 0.5147 MB / 0.8364 GB, free: 13.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 790 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],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],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 (1092): * Single equations (assignments): 1071 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002511/2.056, allocations: 0.773 MB / 0.8372 GB, free: 12.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/2.057, allocations: 485.7 kB / 0.8376 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01635/2.073, allocations: 7.237 MB / 0.8447 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01527/2.089, allocations: 6.427 MB / 0.851 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.473e-05/2.089, allocations: 12 kB / 0.851 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001147/2.089, allocations: 15.94 kB / 0.851 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04252/2.131, allocations: 17.01 MB / 0.8676 GB, free: 14.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-05/2.131, allocations: 15.56 kB / 0.8676 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003674/2.135, allocations: 0.5733 MB / 0.8682 GB, free: 13.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009212/2.144, allocations: 2.885 MB / 0.871 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001142/2.146, allocations: 103.9 kB / 0.8711 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/2.161, allocations: 13.69 MB / 0.8845 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003175/2.164, allocations: 4.445 MB / 0.8888 GB, free: 7.367 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02271/2.187, allocations: 12.1 MB / 0.9006 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/2.19, allocations: 0.5261 MB / 0.9012 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002092/2.192, allocations: 80.91 kB / 0.9012 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004362/2.196, allocations: 371.3 kB / 0.9016 GB, free: 9.859 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009183/2.197, allocations: 245.4 kB / 0.9018 GB, free: 9.617 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003072/2.197, allocations: 97.05 kB / 0.9019 GB, free: 9.523 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005968/2.203, allocations: 3.041 MB / 0.9049 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/2.203, allocations: 4 kB / 0.9049 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0101/2.213, allocations: 1.736 MB / 0.9066 GB, free: 4.766 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$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],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (267): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.313/2.526, allocations: 14.31 MB / 0.9206 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02478/2.551, allocations: 10.16 MB / 0.9305 GB, free: 163.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/2.551, allocations: 5.844 kB / 0.9305 GB, free: 163.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01018/2.561, allocations: 5.039 MB / 0.9354 GB, free: 162.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004816/2.566, allocations: 0.5768 MB / 0.936 GB, free: 162.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0375/2.604, allocations: 15.23 MB / 0.9508 GB, free: 158.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00537/2.609, allocations: 4.399 MB / 0.9551 GB, free: 156.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00742/2.617, allocations: 2.567 MB / 0.9576 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004988/2.622, allocations: 2.806 MB / 0.9604 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.255e-06/2.622, allocations: 4 kB / 0.9604 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1846/2.806, allocations: 118.8 MB / 1.076 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/2.807, allocations: 196.9 kB / 1.077 GB, free: 58.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.592/9.399, allocations: 0 / 1.077 GB, free: 58.5 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat