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.001691/0.001691, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 82.72 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.741e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.09866, allocations: 47.6 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3571/0.4558, allocations: 99.88 MB / 463.1 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.4561, allocations: 90.44 kB / 463.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5342/0.9904, allocations: 116.8 MB / 0.5663 GB, free: 91.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.9905, allocations: 0 / 0.5663 GB, free: 91.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003378/0.9908, allocations: 116.1 kB / 0.5664 GB, free: 91.37 MB / 410.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.02951/1.02, allocations: 6.75 MB / 0.573 GB, free: 89.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/1.02, allocations: 15.5 kB / 0.573 GB, free: 89.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/1.037, allocations: 3.474 MB / 0.5764 GB, free: 88.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01892/1.056, allocations: 7.722 MB / 0.584 GB, free: 87.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/1.056, allocations: 194.9 kB / 0.5841 GB, free: 87.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002856/1.059, allocations: 359.8 kB / 0.5845 GB, free: 87.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01508/1.074, allocations: 9.234 MB / 0.5935 GB, free: 85.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.027/1.101, allocations: 13.24 MB / 0.6064 GB, free: 74.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002864/1.102, allocations: 86.61 kB / 0.6065 GB, free: 74.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002345/1.104, allocations: 40 kB / 0.6066 GB, free: 74.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/1.107, allocations: 1.638 MB / 0.6082 GB, free: 73.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0709/1.178, allocations: 66.4 MB / 0.673 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006049/1.184, allocations: 4.861 MB / 0.6777 GB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005274/1.189, allocations: 2.954 MB / 0.6806 GB, free: 14.13 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02719/1.216, allocations: 13.41 MB / 0.6937 GB, free: 440 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.866e-05/1.217, allocations: 68.5 kB / 0.6938 GB, free: 364 kB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.404e-06/1.217, allocations: 0 / 0.6938 GB, free: 364 kB / 426.7 MB Notification: Performance of matching and sorting (n=307): time 0.3295/1.546, allocations: 19.12 MB / 0.7125 GB, free: 96.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/1.546, allocations: 163.1 kB / 0.7126 GB, free: 96.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008143/1.554, allocations: 3.891 MB / 0.7164 GB, free: 96.17 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001178/1.556, allocations: 28.7 kB / 0.7164 GB, free: 96.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003428/1.559, allocations: 4.262 MB / 0.7206 GB, free: 93.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002151/1.561, allocations: 1.171 MB / 0.7217 GB, free: 93.13 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006563/1.562, allocations: 0 / 0.7217 GB, free: 93.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005885/1.562, allocations: 0.6824 MB / 0.7224 GB, free: 92.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004877/1.567, allocations: 3.258 MB / 0.7256 GB, free: 92.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009176/1.577, allocations: 8.29 MB / 0.7337 GB, free: 86.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00854/1.585, allocations: 5.042 MB / 0.7386 GB, free: 84.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002363/1.585, allocations: 56.64 kB / 0.7387 GB, free: 84.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.0323/1.618, allocations: 12.74 MB / 0.7511 GB, free: 81.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002097/1.618, allocations: 80.97 kB / 0.7512 GB, free: 81.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01341/1.631, allocations: 6.445 MB / 0.7575 GB, free: 79.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009252/1.641, allocations: 2.841 MB / 0.7603 GB, free: 78.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008265/1.649, allocations: 2.103 MB / 0.7623 GB, free: 78.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/1.66, allocations: 12.17 MB / 0.7742 GB, free: 68.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01179/1.672, allocations: 0.6569 MB / 0.7748 GB, free: 68.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003014/1.675, allocations: 0.528 MB / 0.7754 GB, free: 67.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 818 * 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 (1108): * Single equations (assignments): 1087 * 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.003094/1.678, allocations: 0.5685 MB / 0.7759 GB, free: 67.15 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.014/1.692, allocations: 6.954 MB / 0.7827 GB, free: 61.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00178/1.694, allocations: 454.1 kB / 0.7831 GB, free: 61.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/1.708, allocations: 6.889 MB / 0.7899 GB, free: 55.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01196/1.72, allocations: 6.177 MB / 0.7959 GB, free: 51.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.016e-05/1.72, allocations: 4 kB / 0.7959 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/1.72, allocations: 15.09 kB / 0.7959 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03513/1.755, allocations: 15.27 MB / 0.8108 GB, free: 37.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.755, allocations: 4 kB / 0.8108 GB, free: 37.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002938/1.758, allocations: 0.55 MB / 0.8114 GB, free: 37.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008129/1.766, allocations: 2.834 MB / 0.8141 GB, free: 34.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009541/1.767, allocations: 55.92 kB / 0.8142 GB, free: 34.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/1.779, allocations: 13.37 MB / 0.8272 GB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002113/1.781, allocations: 4.255 MB / 0.8314 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/1.799, allocations: 11.12 MB / 0.8423 GB, free: 4.277 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/1.801, allocations: 495.2 kB / 0.8427 GB, free: 3.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/1.802, allocations: 23.98 kB / 0.8427 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/1.805, allocations: 319.3 kB / 0.8431 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006159/1.806, allocations: 228.7 kB / 0.8433 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002503/1.806, allocations: 91.95 kB / 0.8434 GB, free: 3.125 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004414/1.81, allocations: 2.548 MB / 0.8458 GB, free: 0.582 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.81, allocations: 0 / 0.8458 GB, free: 0.582 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0128/1.823, allocations: 1.565 MB / 0.8474 GB, free: 15.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (253): * Single equations (assignments): 238 * 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.136, allocations: 12.54 MB / 0.8596 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02089/2.157, allocations: 9.663 MB / 0.8691 GB, free: 99.81 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/2.157, allocations: 3.812 kB / 0.8691 GB, free: 99.81 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01022/2.167, allocations: 4.882 MB / 0.8738 GB, free: 98.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004615/2.172, allocations: 453.3 kB / 0.8743 GB, free: 98.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04628/2.218, allocations: 14.68 MB / 0.8886 GB, free: 95.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009027/2.228, allocations: 4.397 MB / 0.8929 GB, free: 93.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.009113/2.237, allocations: 2.594 MB / 0.8954 GB, free: 93.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006647/2.243, allocations: 2.805 MB / 0.8982 GB, free: 91.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.894e-06/2.243, allocations: 0 / 0.8982 GB, free: 91.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1865/2.43, allocations: 110.1 MB / 1.006 GB, free: 2.734 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/2.43, allocations: 157.2 kB / 1.006 GB, free: 2.539 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.103/8.534, allocations: 0 / 1.006 GB, free: 2.539 MB / 442.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