Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.003574/0.003578, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001179/0.001179, allocations: 89.31 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003979, allocations: 16 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3516, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.06344/0.415, allocations: 51.87 MB / 426.5 MB, free: 12.85 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.036/0.4511, allocations: 12.1 MB / 438.6 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.011/0.4622, allocations: 251.4 kB / 438.8 MB, free: 488 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009481/0.4717, allocations: 2.523 MB / 441.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03009/0.5018, allocations: 7.363 MB / 448.7 MB, free: 6.559 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005316/0.5072, allocations: 0.8698 MB / 449.6 MB, free: 5.688 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009189/0.5164, allocations: 3.44 MB / 453 MB, free: 2.242 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01226/0.5288, allocations: 5.544 MB / 458.6 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003904/0.5327, allocations: 1.479 MB / 460.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004645/0.5374, allocations: 2.017 MB / 462.1 MB, free: 9.109 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001489/0.539, allocations: 208 kB / 462.3 MB, free: 8.906 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.5429, allocations: 0.9948 MB / 463.3 MB, free: 7.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004353/0.5473, allocations: 2.279 MB / 465.6 MB, free: 5.625 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002411/0.5497, allocations: 1.139 MB / 466.7 MB, free: 4.477 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01291/0.5627, allocations: 7.127 MB / 473.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.473e-06/0.5627, allocations: 4 kB / 473.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5628, allocations: 0 / 473.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003367/0.5631, allocations: 0 / 473.8 MB, free: 13.33 MB / 362.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.02086/0.584, allocations: 5.828 MB / 479.7 MB, free: 7.422 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/0.5841, allocations: 12.03 kB / 479.7 MB, free: 7.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003622/0.5877, allocations: 1.009 MB / 480.7 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02216/0.6099, allocations: 3.163 MB / 483.8 MB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.6219, allocations: 3.794 MB / 487.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005657/0.6225, allocations: 348.7 kB / 488 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004218/0.6267, allocations: 0.6788 MB / 488.7 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3346/0.9613, allocations: 17.6 MB / 0.4944 GB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003103/0.9617, allocations: 59.5 kB / 0.4944 GB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001945/0.9637, allocations: 221.4 kB / 0.4947 GB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008328/0.972, allocations: 2.842 MB / 0.4974 GB, free: 101.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05718/1.029, allocations: 15.49 MB / 0.5126 GB, free: 94.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1047/1.134, allocations: 60.44 MB / 0.5716 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07487/1.209, allocations: 14.8 MB / 0.586 GB, free: 18.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03871/1.248, allocations: 17.6 MB / 0.6032 GB, free: 456 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.499e-05/1.248, allocations: 68.5 kB / 0.6033 GB, free: 380 kB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 7.103e-06/1.248, allocations: 4 kB / 0.6033 GB, free: 376 kB / 378.7 MB Notification: Performance of matching and sorting (n=321): time 0.2302/1.478, allocations: 44.33 MB / 0.6466 GB, free: 3.633 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.288/1.766, allocations: 4.616 MB / 0.6511 GB, free: 142.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/1.778, allocations: 5.465 MB / 0.6564 GB, free: 141.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/1.779, allocations: 72.61 kB / 0.6565 GB, free: 141.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003839/1.783, allocations: 4.068 MB / 0.6605 GB, free: 138.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002249/1.785, allocations: 1.243 MB / 0.6617 GB, free: 137.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001487/1.787, allocations: 176.4 kB / 0.6618 GB, free: 137.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007451/1.787, allocations: 0.6792 MB / 0.6625 GB, free: 137.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01162/1.799, allocations: 3.972 MB / 0.6664 GB, free: 136 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/1.813, allocations: 8.899 MB / 0.6751 GB, free: 128.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.827, allocations: 5.709 MB / 0.6807 GB, free: 126 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001729/1.827, allocations: 46.72 kB / 0.6807 GB, free: 126 MB / 426.7 MB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.07609/1.904, allocations: 17.5 MB / 0.6978 GB, free: 112.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000134/1.904, allocations: 80 kB / 0.6979 GB, free: 112.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05646/1.96, allocations: 10.35 MB / 0.708 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05459/2.015, allocations: 6.188 MB / 0.714 GB, free: 95.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0139/2.029, allocations: 2.183 MB / 0.7161 GB, free: 93.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04084/2.07, allocations: 18.62 MB / 0.7343 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01207/2.082, allocations: 0.7645 MB / 0.7351 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002069/2.084, allocations: 0.5218 MB / 0.7356 GB, free: 72.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * 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 (1094): * Single equations (assignments): 1073 * 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.007961/2.092, allocations: 2.74 MB / 0.7383 GB, free: 70.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/2.093, allocations: 485.7 kB / 0.7387 GB, free: 69.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02698/2.12, allocations: 8.07 MB / 0.7466 GB, free: 61.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02478/2.145, allocations: 7.182 MB / 0.7536 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.68e-05/2.145, allocations: 4 kB / 0.7536 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/2.145, allocations: 22.94 kB / 0.7536 GB, free: 54.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05529/2.201, allocations: 18.34 MB / 0.7715 GB, free: 35.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.128e-05/2.201, allocations: 8 kB / 0.7716 GB, free: 35.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006858/2.208, allocations: 0.7418 MB / 0.7723 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01559/2.223, allocations: 2.904 MB / 0.7751 GB, free: 31.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001097/2.225, allocations: 97.89 kB / 0.7752 GB, free: 31.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02191/2.246, allocations: 13.96 MB / 0.7888 GB, free: 17.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003582/2.25, allocations: 4.481 MB / 0.7932 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3395/2.59, allocations: 13.35 MB / 0.8063 GB, free: 122.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001848/2.592, allocations: 0.5487 MB / 0.8068 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0022/2.594, allocations: 79.94 kB / 0.8069 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006555/2.6, allocations: 377.6 kB / 0.8072 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001612/2.602, allocations: 245.7 kB / 0.8075 GB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005433/2.603, allocations: 103.9 kB / 0.8076 GB, free: 122.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008833/2.611, allocations: 3.414 MB / 0.8109 GB, free: 121.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.612, allocations: 0 / 0.8109 GB, free: 121.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01241/2.624, allocations: 1.848 MB / 0.8127 GB, free: 121.7 MB / 426.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 (273): * Single equations (assignments): 258 * 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 {(4,100.0%),(3,100.0%),(3,100.0%),(4,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 Backend phase and start with SimCode phase: time 0.03941/2.663, allocations: 15.56 MB / 0.8279 GB, free: 114.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0319/2.695, allocations: 11.21 MB / 0.8388 GB, free: 110.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/2.695, allocations: 0 / 0.8388 GB, free: 110.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01764/2.713, allocations: 5.413 MB / 0.8441 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005297/2.718, allocations: 0.5941 MB / 0.8447 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5433/3.262, allocations: 182.6 MB / 1.023 GB, free: 97.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009257/3.271, allocations: 4.43 MB / 1.027 GB, free: 93.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00709/3.278, allocations: 2.884 MB / 1.03 GB, free: 90.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.964e-06/3.278, allocations: 0 / 1.03 GB, free: 90.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.95/10.23, allocations: 395.2 MB / 1.416 GB, free: 43.91 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat