Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001034/0.001034, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.137/1.137, allocations: 225.5 MB / 234.4 MB, free: 14.94 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 101.6 kB / 286.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09275/0.09379, allocations: 56.88 MB / 343.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.2645, allocations: 51.46 MB / 394.7 MB, free: 33.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3656, allocations: 101.9 MB / 496.6 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.3659, allocations: 85.05 kB / 496.7 MB, free: 10.95 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.4183/0.7842, allocations: 127.3 MB / 0.6094 GB, free: 11.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.7843, allocations: 12 kB / 0.6094 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/0.7996, allocations: 3.05 MB / 0.6123 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01569/0.8154, allocations: 6.528 MB / 0.6187 GB, free: 2.023 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002268/0.8156, allocations: 196 kB / 0.6189 GB, free: 1.832 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001351/0.817, allocations: 375.7 kB / 0.6193 GB, free: 1.465 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01391/0.8309, allocations: 9.568 MB / 0.6286 GB, free: 7.883 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.8484, allocations: 13.56 MB / 0.6419 GB, free: 9.008 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001626/0.8485, allocations: 71.34 kB / 0.6419 GB, free: 8.938 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006511/0.8492, allocations: 36 kB / 0.642 GB, free: 8.902 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002665/0.8519, allocations: 1.735 MB / 0.6437 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.165/1.017, allocations: 67.81 MB / 0.7099 GB, free: 65.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004348/1.021, allocations: 4.298 MB / 0.7141 GB, free: 64.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003331/1.025, allocations: 3.485 MB / 0.7175 GB, free: 64.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01832/1.043, allocations: 14.8 MB / 0.7319 GB, free: 60.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.919e-05/1.043, allocations: 72.94 kB / 0.732 GB, free: 60.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 5.37e-06/1.043, allocations: 0 / 0.732 GB, free: 60.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=307): time 0.03783/1.081, allocations: 18.83 MB / 0.7504 GB, free: 53.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/1.081, allocations: 164.7 kB / 0.7505 GB, free: 53.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004683/1.086, allocations: 3.909 MB / 0.7544 GB, free: 51.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002538/1.086, allocations: 29.55 kB / 0.7544 GB, free: 51.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/1.087, allocations: 3.965 MB / 0.7583 GB, free: 49.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008188/1.088, allocations: 1.163 MB / 0.7594 GB, free: 48.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/1.088, allocations: 0 / 0.7594 GB, free: 48.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003335/1.089, allocations: 0.6803 MB / 0.7601 GB, free: 47.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003799/1.093, allocations: 3.373 MB / 0.7633 GB, free: 46.69 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005086/1.098, allocations: 8.41 MB / 0.7716 GB, free: 38.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005671/1.103, allocations: 5.226 MB / 0.7767 GB, free: 37.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.598e-05/1.103, allocations: 52.16 kB / 0.7767 GB, free: 37.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.02024/1.124, allocations: 12.76 MB / 0.7892 GB, free: 26.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.124, allocations: 7.938 kB / 0.7892 GB, free: 26.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01218/1.136, allocations: 6.453 MB / 0.7955 GB, free: 21.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009321/1.145, allocations: 2.684 MB / 0.7981 GB, free: 19.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006/1.151, allocations: 2.063 MB / 0.8001 GB, free: 17.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009355/1.161, allocations: 11.98 MB / 0.8118 GB, free: 6.207 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006677/1.167, allocations: 0.5085 MB / 0.8123 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006694/1.168, allocations: 0.5255 MB / 0.8128 GB, free: 5.316 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.0008772/1.169, allocations: 0.5624 MB / 0.8134 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005548/1.169, allocations: 450.2 kB / 0.8138 GB, free: 4.305 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1215/1.291, allocations: 6.839 MB / 0.8205 GB, free: 93.42 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01106/1.302, allocations: 6.095 MB / 0.8264 GB, free: 93.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.805e-05/1.302, allocations: 11.08 kB / 0.8265 GB, free: 93.26 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.262e-05/1.302, allocations: 13.17 kB / 0.8265 GB, free: 93.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02419/1.326, allocations: 15.3 MB / 0.8414 GB, free: 92.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/1.326, allocations: 7.594 kB / 0.8414 GB, free: 92.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.329, allocations: 0.5104 MB / 0.8419 GB, free: 92.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007905/1.337, allocations: 2.682 MB / 0.8445 GB, free: 92.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003039/1.337, allocations: 48.17 kB / 0.8446 GB, free: 92.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/1.348, allocations: 13.12 MB / 0.8574 GB, free: 85.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00176/1.35, allocations: 4.164 MB / 0.8615 GB, free: 81.26 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0155/1.366, allocations: 11.21 MB / 0.8724 GB, free: 80 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01981/1.386, allocations: 15.11 MB / 0.8872 GB, free: 78.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/1.387, allocations: 486.3 kB / 0.8876 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007347/1.387, allocations: 32.56 kB / 0.8877 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002723/1.39, allocations: 215.3 kB / 0.8879 GB, free: 78.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003849/1.391, allocations: 155 kB / 0.888 GB, free: 78.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003048/1.391, allocations: 95.69 kB / 0.8881 GB, free: 77.99 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003486/1.394, allocations: 2.572 MB / 0.8906 GB, free: 77.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006657/1.401, allocations: 1.574 MB / 0.8921 GB, free: 77.06 MB / 426.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.0004972/1.402, allocations: 197.6 kB / 0.8923 GB, free: 76.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01338/1.415, allocations: 9.815 MB / 0.9019 GB, free: 73.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.415, allocations: 0 / 0.9019 GB, free: 73.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007739/1.423, allocations: 4.699 MB / 0.9065 GB, free: 71.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/1.425, allocations: 452.5 kB / 0.9069 GB, free: 71.25 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01883/1.443, allocations: 13.1 MB / 0.9197 GB, free: 61.42 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005835/1.449, allocations: 4.917 MB / 0.9245 GB, free: 57.68 MB / 426.7 MB Notification: Performance of SimCode: time 6.42e-07/1.449, allocations: 3.188 kB / 0.9245 GB, free: 57.68 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1)