Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009389/0.0009389, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.251/1.251, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008668/0.0008667, allocations: 96.78 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.0002379, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2063, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3097, allocations: 100.4 MB / 476.3 MB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.3101, allocations: 91.95 kB / 476.4 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4231/0.7332, allocations: 119.2 MB / 0.5817 GB, free: 34.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.7332, allocations: 4 kB / 0.5817 GB, free: 34.44 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002101/0.7335, allocations: 116 kB / 0.5818 GB, free: 34.33 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: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.0278/0.7613, allocations: 7.07 MB / 0.5887 GB, free: 27.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.7613, allocations: 8.031 kB / 0.5887 GB, free: 27.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003237/0.7646, allocations: 1.099 MB / 0.5898 GB, free: 26.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01477/0.7794, allocations: 3.472 MB / 0.5932 GB, free: 22.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.017/0.7964, allocations: 7.757 MB / 0.6007 GB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003415/0.7968, allocations: 464 kB / 0.6012 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002292/0.7991, allocations: 0.6012 MB / 0.6018 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03408/0.8332, allocations: 17.71 MB / 0.6191 GB, free: 10.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002907/0.8335, allocations: 75.28 kB / 0.6191 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001769/0.8353, allocations: 291.8 kB / 0.6194 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002863/0.8382, allocations: 1.641 MB / 0.621 GB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03616/0.8743, allocations: 15.35 MB / 0.636 GB, free: 9.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2498/1.124, allocations: 67.55 MB / 0.702 GB, free: 32.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01652/1.141, allocations: 7.02 MB / 0.7088 GB, free: 31.35 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02242/1.163, allocations: 14.54 MB / 0.723 GB, free: 26.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.092e-05/1.163, allocations: 67.03 kB / 0.7231 GB, free: 26.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 7.374e-06/1.163, allocations: 3.422 kB / 0.7231 GB, free: 26.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=321): time 0.06593/1.229, allocations: 26.21 MB / 0.7487 GB, free: 17.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00242/1.232, allocations: 4.622 MB / 0.7532 GB, free: 12.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009323/1.241, allocations: 4.611 MB / 0.7577 GB, free: 11.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008097/1.242, allocations: 76.84 kB / 0.7578 GB, free: 11.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002536/1.245, allocations: 4.18 MB / 0.7619 GB, free: 7.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/1.246, allocations: 1.244 MB / 0.7631 GB, free: 6.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/1.247, allocations: 176 kB / 0.7632 GB, free: 6.375 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007896/1.248, allocations: 0.6745 MB / 0.7639 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005879/1.254, allocations: 3.574 MB / 0.7674 GB, free: 2.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/1.265, allocations: 8.547 MB / 0.7757 GB, free: 9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/1.275, allocations: 5.32 MB / 0.7809 GB, free: 4.488 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002421/1.275, allocations: 59.89 kB / 0.781 GB, free: 4.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03476/1.31, allocations: 14.15 MB / 0.7948 GB, free: 8.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002905/1.31, allocations: 80 kB / 0.7949 GB, free: 8.742 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01682/1.327, allocations: 6.747 MB / 0.8015 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01003/1.337, allocations: 2.885 MB / 0.8043 GB, free: 132 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1985/1.535, allocations: 2.065 MB / 0.8063 GB, free: 99.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.546, allocations: 12.87 MB / 0.8189 GB, free: 91.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007685/1.553, allocations: 0.8244 MB / 0.8197 GB, free: 91.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/1.554, allocations: 0.5137 MB / 0.8202 GB, free: 91.43 MB / 442.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 () * Number of clocked 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.004136/1.559, allocations: 2.739 MB / 0.8229 GB, free: 91.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007843/1.559, allocations: 489.3 kB / 0.8233 GB, free: 91.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/1.572, allocations: 7.285 MB / 0.8304 GB, free: 91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01152/1.584, allocations: 6.477 MB / 0.8368 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.834e-05/1.584, allocations: 9.531 kB / 0.8368 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/1.584, allocations: 13.45 kB / 0.8368 GB, free: 90.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0275/1.611, allocations: 17.06 MB / 0.8534 GB, free: 88.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/1.611, allocations: 6.625 kB / 0.8534 GB, free: 88.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002409/1.614, allocations: 0.5758 MB / 0.854 GB, free: 88.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007738/1.621, allocations: 2.895 MB / 0.8568 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004338/1.622, allocations: 94.05 kB / 0.8569 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/1.633, allocations: 13.96 MB / 0.8706 GB, free: 78.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002036/1.635, allocations: 4.466 MB / 0.8749 GB, free: 74.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01758/1.653, allocations: 12.2 MB / 0.8868 GB, free: 69.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/1.654, allocations: 0.5398 MB / 0.8874 GB, free: 69.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.655, allocations: 81.66 kB / 0.8874 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00333/1.659, allocations: 368.3 kB / 0.8878 GB, free: 69.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006743/1.659, allocations: 238.4 kB / 0.888 GB, free: 69.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003499/1.66, allocations: 101 kB / 0.8881 GB, free: 68.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005602/1.665, allocations: 3.212 MB / 0.8913 GB, free: 66.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.665, allocations: 0 / 0.8913 GB, free: 66.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007977/1.673, allocations: 1.736 MB / 0.893 GB, free: 64.64 MB / 442.7 MB 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 () * Number of clocked 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.01754/1.691, allocations: 14.39 MB / 0.907 GB, free: 51.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01597/1.707, allocations: 10.36 MB / 0.9171 GB, free: 43.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/1.707, allocations: 7.125 kB / 0.9171 GB, free: 43.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008342/1.715, allocations: 5.076 MB / 0.9221 GB, free: 38.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/1.719, allocations: 0.5927 MB / 0.9227 GB, free: 37.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.341/2.06, allocations: 175.9 MB / 1.094 GB, free: 21.33 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008818/2.069, allocations: 4.414 MB / 1.099 GB, free: 20.49 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006913/2.076, allocations: 2.579 MB / 1.101 GB, free: 20.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003916/2.08, allocations: 2.812 MB / 1.104 GB, free: 20.43 MB / 474.7 MB Notification: Performance of SimCode: time 8.61e-07/2.08, allocations: 0 / 1.104 GB, free: 20.43 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3689/2.449, allocations: 118.9 MB / 1.22 GB, free: 107.5 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001599/2.449, allocations: 225.6 kB / 1.22 GB, free: 107.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.095/7.544, allocations: 1.422 kB / 1.22 GB, free: 107.3 MB / 474.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat