Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo) 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: translateModel(Physiolibrary.Thermal.Examples.MuscleHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat") translateModel(Physiolibrary.Thermal.Examples.MuscleHeat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat") [: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.002468/0.002468, allocations: 173.7 kB / 7.458 MB, free: 2.488 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.27/1.27, allocations: 221.4 MB / 229.3 MB, free: 3.07 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.001136/0.001136, allocations: 99.97 kB / 280.1 MB, free: 1.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.342/0.342, allocations: 37.07 MB / 368 MB, free: 47.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.948e-06/9.978e-06, allocations: 4 kB / 434.1 MB, free: 4.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 60.08 MB / 494.2 MB, free: 8.723 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.4208, allocations: 91.12 MB / 0.5716 GB, free: 8.434 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.4211, allocations: 71.95 kB / 0.5716 GB, free: 8.363 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Thermal.mo:312:7-312:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System body.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Thermal.Sources.UnlimitedHeat$body. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd: time 0.007789/0.4289, allocations: 2.817 MB / 0.5744 GB, free: 5.574 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.464e-05/0.4289, allocations: 4 kB / 0.5744 GB, free: 5.57 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004413/0.4294, allocations: 397 kB / 0.5748 GB, free: 5.141 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.4294, allocations: 8.031 kB / 0.5748 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.4295, allocations: 16.38 kB / 0.5748 GB, free: 5.117 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.4298, allocations: 234.5 kB / 0.575 GB, free: 4.848 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.4298, allocations: 4 kB / 0.575 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.4298, allocations: 4 kB / 0.575 GB, free: 4.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001037/0.4299, allocations: 28 kB / 0.575 GB, free: 4.812 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001118/0.4301, allocations: 66.91 kB / 0.5751 GB, free: 4.746 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4301, allocations: 0.5625 kB / 0.5751 GB, free: 4.746 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.4301, allocations: 0 / 0.5751 GB, free: 4.746 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.4301, allocations: 4 kB / 0.5751 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006117/0.4307, allocations: 467.3 kB / 0.5756 GB, free: 4.227 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.417e-05/0.4308, allocations: 45.66 kB / 0.5756 GB, free: 4.176 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.414e-05/0.4309, allocations: 22.45 kB / 0.5756 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.4309, allocations: 0 / 0.5756 GB, free: 4.156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.431, allocations: 38.56 kB / 0.5757 GB, free: 4.109 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.431, allocations: 4 kB / 0.5757 GB, free: 4.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001905/0.4312, allocations: 61.59 kB / 0.5757 GB, free: 4.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.945e-05/0.4312, allocations: 51.41 kB / 0.5758 GB, free: 3.977 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4314, allocations: 149.5 kB / 0.5759 GB, free: 3.824 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.4314, allocations: 25.7 kB / 0.5759 GB, free: 3.793 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.678e-05/0.4315, allocations: 100.2 kB / 0.576 GB, free: 3.688 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.847e-05/0.4315, allocations: 15.89 kB / 0.576 GB, free: 3.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.717e-06/0.4315, allocations: 0 / 0.576 GB, free: 3.672 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4317, allocations: 322.8 kB / 0.5764 GB, free: 3.348 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.626e-05/0.4317, allocations: 12 kB / 0.5764 GB, free: 3.336 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.2e-05/0.4317, allocations: 15.94 kB / 0.5764 GB, free: 3.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.902e-05/0.4318, allocations: 16.98 kB / 0.5764 GB, free: 3.305 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4318, allocations: 0 / 0.5764 GB, free: 3.305 MB / 394.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001104/0.4319, allocations: 65.52 kB / 0.5765 GB, free: 3.234 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.4319, allocations: 4 kB / 0.5765 GB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4319, allocations: 7.984 kB / 0.5765 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.4319, allocations: 0 / 0.5765 GB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.432, allocations: 15.12 kB / 0.5765 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.4321, allocations: 0 / 0.5765 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.4321, allocations: 7.906 kB / 0.5765 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.4321, allocations: 0 / 0.5765 GB, free: 3.203 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: muscle.relativeHeat:VARIABLE(start = muscle.relativeHeat_start unit = "J" nominal = 4186800.0 ) "Current accumulated heat = weight*(T - 37degC)*specificHeat" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.4323, allocations: 114 kB / 0.5766 GB, free: 3.086 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.4323, allocations: 15.75 kB / 0.5766 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.537e-05/0.4323, allocations: 21.02 kB / 0.5766 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.4324, allocations: 1.406 kB / 0.5766 GB, free: 3.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.4324, allocations: 4 kB / 0.5766 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.4324, allocations: 0 / 0.5766 GB, free: 3.051 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.4326, allocations: 178.2 kB / 0.5768 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.4326, allocations: 0 / 0.5768 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.95e-05/0.4327, allocations: 12 kB / 0.5768 GB, free: 2.828 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.4327, allocations: 3.906 kB / 0.5768 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.4327, allocations: 0 / 0.5768 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4327, allocations: 0 / 0.5768 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4327, allocations: 0 / 0.5768 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002033/0.4329, allocations: 179.4 kB / 0.577 GB, free: 2.633 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.433, allocations: 97 kB / 0.5771 GB, free: 2.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.447e-05/0.433, allocations: 3.438 kB / 0.5771 GB, free: 2.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.364e-05/0.4331, allocations: 7.906 kB / 0.5771 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.4331, allocations: 0 / 0.5771 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.4332, allocations: 7.922 kB / 0.5771 GB, free: 2.504 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.73e-05/0.4333, allocations: 124.3 kB / 0.5772 GB, free: 2.383 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002428/0.4335, allocations: 20 kB / 0.5772 GB, free: 2.363 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (muscle.relativeHeat) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001218/0.4336, allocations: 95.25 kB / 0.5773 GB, free: 2.258 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.4338, allocations: 32 kB / 0.5774 GB, free: 2.227 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4338, allocations: 0 / 0.5774 GB, free: 2.227 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/0.4338, allocations: 23.94 kB / 0.5774 GB, free: 2.203 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.4341, allocations: 50.36 kB / 0.5774 GB, free: 2.156 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004759/0.4346, allocations: 191 kB / 0.5776 GB, free: 1.949 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.435, allocations: 0.7252 MB / 0.5783 GB, free: 1.199 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.435, allocations: 0 / 0.5783 GB, free: 1.199 MB / 394.7 MB Notification: Performance of Templates: time 0.003756/0.4388, allocations: 1.394 MB / 0.5797 GB, free: 15.87 MB / 410.7 MB make -j1 -f Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.makefile (rm -f Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; mkfifo Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe >> ../files/Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.sim & ./Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)