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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 183.4 kB / 8.13 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.176/1.176, allocations: 221.4 MB / 229.9 MB, free: 3.141 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.001079/0.001079, allocations: 107.4 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08877/0.08989, allocations: 55.82 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.2721, allocations: 50.39 MB / 387 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3744, allocations: 101.3 MB / 488.3 MB, free: 1.473 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3746, allocations: 91.89 kB / 488.4 MB, free: 1.383 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.4629/0.8376, allocations: 123.2 MB / 0.5972 GB, free: 15.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.8376, allocations: 8 kB / 0.5972 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01528/0.8529, allocations: 2.905 MB / 0.6001 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/0.8721, allocations: 7.319 MB / 0.6072 GB, free: 5.645 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003774/0.8725, allocations: 196 kB / 0.6074 GB, free: 5.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002438/0.8749, allocations: 367.8 kB / 0.6077 GB, free: 5.094 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01633/0.8913, allocations: 9.568 MB / 0.6171 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02514/0.9164, allocations: 13.56 MB / 0.6303 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000307/0.9168, allocations: 75.28 kB / 0.6304 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001789/0.9186, allocations: 43.94 kB / 0.6304 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00316/0.9218, allocations: 1.731 MB / 0.6321 GB, free: 10.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1902/1.112, allocations: 67.81 MB / 0.6984 GB, free: 84.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005113/1.117, allocations: 4.307 MB / 0.7026 GB, free: 84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003896/1.121, allocations: 3.483 MB / 0.706 GB, free: 83.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0195/1.141, allocations: 14.79 MB / 0.7204 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/1.141, allocations: 73.58 kB / 0.7205 GB, free: 79.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 5.811e-06/1.141, allocations: 7.594 kB / 0.7205 GB, free: 79.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=307): time 0.03818/1.179, allocations: 18.85 MB / 0.7389 GB, free: 76.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/1.179, allocations: 159.6 kB / 0.739 GB, free: 76.04 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004685/1.184, allocations: 3.911 MB / 0.7429 GB, free: 75.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/1.184, allocations: 29.2 kB / 0.7429 GB, free: 75.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/1.185, allocations: 3.953 MB / 0.7467 GB, free: 73.24 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009563/1.186, allocations: 1.164 MB / 0.7479 GB, free: 72.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003859/1.187, allocations: 0 / 0.7479 GB, free: 72.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000349/1.187, allocations: 0.6869 MB / 0.7486 GB, free: 72.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004165/1.191, allocations: 3.375 MB / 0.7518 GB, free: 71.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005796/1.197, allocations: 8.41 MB / 0.7601 GB, free: 63.93 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006882/1.204, allocations: 5.217 MB / 0.7652 GB, free: 62.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/1.204, allocations: 50.84 kB / 0.7652 GB, free: 62.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.02356/1.228, allocations: 12.77 MB / 0.7777 GB, free: 59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/1.228, allocations: 3.406 kB / 0.7777 GB, free: 59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01274/1.241, allocations: 6.458 MB / 0.784 GB, free: 54.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009181/1.25, allocations: 2.686 MB / 0.7866 GB, free: 52.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007142/1.257, allocations: 2.059 MB / 0.7886 GB, free: 51.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01007/1.267, allocations: 11.98 MB / 0.8003 GB, free: 39.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008346/1.275, allocations: 0.5079 MB / 0.8008 GB, free: 39.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001527/1.277, allocations: 0.5333 MB / 0.8013 GB, free: 38.7 MB / 442.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.001965/1.279, allocations: 0.5564 MB / 0.8019 GB, free: 38.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008995/1.28, allocations: 458 kB / 0.8023 GB, free: 37.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01368/1.294, allocations: 6.837 MB / 0.809 GB, free: 32.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01216/1.306, allocations: 6.096 MB / 0.8149 GB, free: 27.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/1.306, allocations: 12 kB / 0.815 GB, free: 27.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-05/1.306, allocations: 13.73 kB / 0.815 GB, free: 27.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02798/1.334, allocations: 15.31 MB / 0.8299 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.334, allocations: 4.375 kB / 0.8299 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002898/1.337, allocations: 0.5152 MB / 0.8304 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008803/1.346, allocations: 2.676 MB / 0.833 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005645/1.346, allocations: 49.53 kB / 0.8331 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.359, allocations: 13.12 MB / 0.8459 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1265/1.485, allocations: 4.156 MB / 0.85 GB, free: 105.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01674/1.502, allocations: 11.21 MB / 0.8609 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02028/1.522, allocations: 15.11 MB / 0.8757 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.523, allocations: 491.8 kB / 0.8761 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000771/1.524, allocations: 30.47 kB / 0.8762 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.527, allocations: 214.1 kB / 0.8764 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/1.527, allocations: 154.8 kB / 0.8765 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002695/1.528, allocations: 90 kB / 0.8766 GB, free: 102.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003341/1.531, allocations: 2.58 MB / 0.8791 GB, free: 102.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00736/1.538, allocations: 1.554 MB / 0.8806 GB, free: 102.5 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.0005251/1.539, allocations: 209.1 kB / 0.8808 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01506/1.554, allocations: 9.825 MB / 0.8904 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/1.554, allocations: 0 / 0.8904 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00841/1.563, allocations: 4.683 MB / 0.895 GB, free: 99.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002433/1.565, allocations: 446.9 kB / 0.8954 GB, free: 99.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02227/1.587, allocations: 13.11 MB / 0.9082 GB, free: 96.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006398/1.594, allocations: 4.91 MB / 0.913 GB, free: 96.04 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/1.594, allocations: 0 / 0.913 GB, free: 96.04 MB / 442.7 MB (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)