Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.000984/0.0009839, allocations: 196.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 226.5 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007722/0.0007722, allocations: 100.3 kB / 296.7 MB, free: 6.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002317, allocations: 8 kB / 356.8 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1758, allocations: 51.3 MB / 408.1 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.03943/0.2152, allocations: 54.93 MB / 463.1 MB, free: 4.527 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02076/0.236, allocations: 11.63 MB / 474.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006859/0.2429, allocations: 251.4 kB / 474.9 MB, free: 8.633 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006147/0.2491, allocations: 2.822 MB / 477.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0172/0.2663, allocations: 8.423 MB / 486.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002988/0.2693, allocations: 0.9167 MB / 487.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.007532/0.2768, allocations: 7.044 MB / 494.1 MB, free: 5.363 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007505/0.2844, allocations: 6.065 MB / 0.4885 GB, free: 15.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002638/0.287, allocations: 1.79 MB / 0.4902 GB, free: 13.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00345/0.2905, allocations: 2.804 MB / 0.493 GB, free: 10.58 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007921/0.2913, allocations: 208 kB / 0.4932 GB, free: 10.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002299/0.2936, allocations: 1.166 MB / 0.4943 GB, free: 9.211 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002225/0.2958, allocations: 2.423 MB / 0.4967 GB, free: 6.781 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002361/0.2982, allocations: 2.681 MB / 0.4993 GB, free: 4.078 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2013/0.4995, allocations: 7.1 MB / 0.5062 GB, free: 14.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.4996, allocations: 3.188 kB / 0.5062 GB, free: 14.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4996, allocations: 1.969 kB / 0.5062 GB, free: 14.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003814/0.5, allocations: 0.5312 kB / 0.5062 GB, free: 14.35 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.01228/0.5122, allocations: 5.686 MB / 0.5118 GB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.5123, allocations: 9 kB / 0.5118 GB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002095/0.5144, allocations: 1.012 MB / 0.5128 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.011/0.5254, allocations: 2.855 MB / 0.5156 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007298/0.5327, allocations: 3.79 MB / 0.5193 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.5331, allocations: 355.9 kB / 0.5196 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/0.5347, allocations: 0.6703 MB / 0.5203 GB, free: 10.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03033/0.5651, allocations: 17.42 MB / 0.5373 GB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.5652, allocations: 60.38 kB / 0.5373 GB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005302/0.5658, allocations: 217.3 kB / 0.5375 GB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003436/0.5692, allocations: 2.844 MB / 0.5403 GB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02738/0.5966, allocations: 15.26 MB / 0.5552 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06278/0.6594, allocations: 58.76 MB / 0.6126 GB, free: 13.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01658/0.676, allocations: 7.122 MB / 0.6196 GB, free: 7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004369/0.6804, allocations: 3.237 MB / 0.6227 GB, free: 3.758 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/0.7004, allocations: 14.37 MB / 0.6368 GB, free: 5.012 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.7005, allocations: 63.66 kB / 0.6368 GB, free: 4.945 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 5.12e-06/0.7005, allocations: 4 kB / 0.6368 GB, free: 4.941 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.06301/0.7635, allocations: 26.07 MB / 0.6623 GB, free: 10.64 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002982/0.7665, allocations: 4.597 MB / 0.6668 GB, free: 5.602 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00693/0.7735, allocations: 5.09 MB / 0.6717 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003798/0.7739, allocations: 77.38 kB / 0.6718 GB, free: 456 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002624/0.7765, allocations: 4.185 MB / 0.6759 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001177/0.7777, allocations: 1.239 MB / 0.6771 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005225/0.7782, allocations: 175 kB / 0.6773 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004677/0.7787, allocations: 0.686 MB / 0.6779 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005147/0.7839, allocations: 3.527 MB / 0.6814 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1661/0.95, allocations: 8.496 MB / 0.6897 GB, free: 197.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01391/0.964, allocations: 12.84 MB / 0.7022 GB, free: 188.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/0.9642, allocations: 51.16 kB / 0.7023 GB, free: 188.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.02216/0.9863, allocations: 14.09 MB / 0.716 GB, free: 183.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.359e-05/0.9864, allocations: 80.47 kB / 0.7161 GB, free: 183.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01106/0.9975, allocations: 6.841 MB / 0.7228 GB, free: 179.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007702/1.005, allocations: 2.877 MB / 0.7256 GB, free: 177.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005323/1.011, allocations: 2.034 MB / 0.7276 GB, free: 176 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009411/1.02, allocations: 12.65 MB / 0.7399 GB, free: 162.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00663/1.027, allocations: 0.6867 MB / 0.7406 GB, free: 162 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.028, allocations: 0.5204 MB / 0.7411 GB, free: 161.5 MB / 0.4948 GB 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.003681/1.031, allocations: 2.732 MB / 0.7438 GB, free: 158.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006616/1.032, allocations: 488.7 kB / 0.7443 GB, free: 158.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/1.044, allocations: 7.403 MB / 0.7515 GB, free: 151.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01092/1.055, allocations: 6.58 MB / 0.7579 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.055, allocations: 8.875 kB / 0.7579 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.884e-05/1.055, allocations: 15.94 kB / 0.7579 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02515/1.081, allocations: 17.15 MB / 0.7747 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.878e-05/1.081, allocations: 8.062 kB / 0.7747 GB, free: 127.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/1.083, allocations: 0.589 MB / 0.7753 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007578/1.091, allocations: 2.908 MB / 0.7781 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003595/1.091, allocations: 95.69 kB / 0.7782 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/1.102, allocations: 13.72 MB / 0.7916 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001801/1.104, allocations: 4.441 MB / 0.7959 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/1.119, allocations: 11.33 MB / 0.807 GB, free: 92.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/1.12, allocations: 0.5338 MB / 0.8075 GB, free: 92.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005315/1.121, allocations: 81.77 kB / 0.8076 GB, free: 92.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/1.123, allocations: 323.5 kB / 0.8079 GB, free: 91.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000787/1.124, allocations: 249.4 kB / 0.8082 GB, free: 91.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/1.124, allocations: 99.95 kB / 0.8083 GB, free: 91.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003571/1.128, allocations: 3.124 MB / 0.8113 GB, free: 88.45 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.128, allocations: 4 kB / 0.8113 GB, free: 88.44 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005627/1.133, allocations: 1.726 MB / 0.813 GB, free: 86.72 MB / 0.4948 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 () * 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.01537/1.149, allocations: 12.05 MB / 0.8248 GB, free: 74.45 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01443/1.163, allocations: 10.37 MB / 0.8349 GB, free: 63.89 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/1.163, allocations: 4 kB / 0.8349 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008212/1.172, allocations: 5.122 MB / 0.8399 GB, free: 58.55 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007794/1.179, allocations: 0.6293 MB / 0.8405 GB, free: 57.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2322/1.412, allocations: 57.54 MB / 0.8967 GB, free: 183.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004762/1.416, allocations: 4.292 MB / 0.9009 GB, free: 182.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003191/1.42, allocations: 2.866 MB / 0.9037 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.153e-06/1.42, allocations: 3.5 kB / 0.9037 GB, free: 182.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.78/13.2, allocations: 396.3 MB / 1.291 GB, free: 158.9 MB / 0.4948 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1)