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: "" <> buildModelFMU(Physiolibrary.Thermal.Examples.MuscleHeat,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Thermal.Examples.MuscleHeat,fileNamePrefix="Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat",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.002088/0.002088, allocations: 180.6 kB / 7.459 MB, free: 2.5 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.125/1.125, 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.000912/0.000912, allocations: 101.5 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.2832/0.2832, allocations: 37.06 MB / 368 MB, free: 47.53 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1094/0.3926, allocations: 66.21 MB / 434.2 MB, free: 4.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.4988, allocations: 60.1 MB / 494.3 MB, free: 8.652 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2515/0.7503, allocations: 91.11 MB / 0.5717 GB, free: 8.395 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.7506, allocations: 67.97 kB / 0.5717 GB, free: 8.328 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: 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.007873/0.7585, allocations: 3.209 MB / 0.5749 GB, free: 5.113 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.7585, allocations: 8 kB / 0.5749 GB, free: 5.105 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.7586, allocations: 17.94 kB / 0.5749 GB, free: 5.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.7589, allocations: 230.5 kB / 0.5751 GB, free: 4.824 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.7589, allocations: 4 kB / 0.5751 GB, free: 4.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.7589, allocations: 8 kB / 0.5751 GB, free: 4.812 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001009/0.759, allocations: 31.98 kB / 0.5751 GB, free: 4.781 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.7592, allocations: 61.69 kB / 0.5752 GB, free: 4.715 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.7592, allocations: 0 / 0.5752 GB, free: 4.715 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.7592, allocations: 0 / 0.5752 GB, free: 4.715 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.7592, allocations: 4 kB / 0.5752 GB, free: 4.711 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.7599, allocations: 466.2 kB / 0.5757 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.713e-05/0.76, allocations: 41.66 kB / 0.5757 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.515e-05/0.76, allocations: 20.98 kB / 0.5757 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.76, allocations: 0 / 0.5757 GB, free: 4.125 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.7601, allocations: 42.56 kB / 0.5758 GB, free: 4.074 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 8.01e-07/0.7601, allocations: 2.734 kB / 0.5758 GB, free: 4.074 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001831/0.7603, allocations: 61.59 kB / 0.5758 GB, free: 4.008 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.672e-05/0.7603, allocations: 51.41 kB / 0.5759 GB, free: 3.945 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.7604, allocations: 149.5 kB / 0.576 GB, free: 3.793 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.7605, allocations: 25.7 kB / 0.576 GB, free: 3.762 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.931e-05/0.7605, allocations: 96.22 kB / 0.5761 GB, free: 3.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.7605, allocations: 19.89 kB / 0.5761 GB, free: 3.641 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.7606, allocations: 4 kB / 0.5761 GB, free: 3.637 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.7607, allocations: 322.8 kB / 0.5765 GB, free: 3.312 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.286e-05/0.7607, allocations: 8 kB / 0.5765 GB, free: 3.305 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.084e-05/0.7607, allocations: 12.59 kB / 0.5765 GB, free: 3.293 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.624e-05/0.7608, allocations: 18.38 kB / 0.5765 GB, free: 3.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.7608, allocations: 3.984 kB / 0.5765 GB, free: 3.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.616e-05/0.7609, allocations: 65.52 kB / 0.5766 GB, free: 3.203 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.7609, allocations: 4 kB / 0.5766 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.7609, allocations: 4 kB / 0.5766 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.7609, allocations: 4 kB / 0.5766 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.629e-05/0.761, allocations: 15.73 kB / 0.5766 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.761, allocations: 0 / 0.5766 GB, free: 3.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.778e-05/0.7611, allocations: 3.906 kB / 0.5766 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.7611, allocations: 0 / 0.5766 GB, free: 3.176 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.0001168/0.7612, allocations: 113 kB / 0.5767 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.7613, allocations: 11.81 kB / 0.5767 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.7613, allocations: 21.02 kB / 0.5767 GB, free: 3.031 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.7613, allocations: 4 kB / 0.5767 GB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7613, allocations: 7.938 kB / 0.5767 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.7613, allocations: 0 / 0.5767 GB, free: 3.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.7615, allocations: 177.3 kB / 0.5769 GB, free: 2.812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.7615, allocations: 0 / 0.5769 GB, free: 2.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.239e-05/0.7616, allocations: 8 kB / 0.5769 GB, free: 2.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7616, allocations: 3.906 kB / 0.5769 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.7616, allocations: 0 / 0.5769 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.7616, allocations: 0 / 0.5769 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7616, allocations: 0 / 0.5769 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001771/0.7618, allocations: 183.4 kB / 0.5771 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002909/0.7621, allocations: 0.5717 MB / 0.5777 GB, free: 2.016 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.257e-05/0.7622, allocations: 92.94 kB / 0.5777 GB, free: 1.906 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.7622, allocations: 4 kB / 0.5777 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.917e-05/0.7623, allocations: 3.906 kB / 0.5778 GB, free: 1.898 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.7623, allocations: 4.125 kB / 0.5778 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.7623, allocations: 3.438 kB / 0.5778 GB, free: 1.895 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.013e-05/0.7624, allocations: 124.3 kB / 0.5779 GB, free: 1.773 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008473/0.7633, allocations: 24 kB / 0.5779 GB, free: 1.75 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.0001142/0.7634, allocations: 95.23 kB / 0.578 GB, free: 1.645 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.968e-05/0.7635, allocations: 27.94 kB / 0.578 GB, free: 1.617 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7635, allocations: 0 / 0.578 GB, free: 1.617 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.702e-05/0.7635, allocations: 20 kB / 0.578 GB, free: 1.598 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.7639, allocations: 59.7 kB / 0.5781 GB, free: 1.543 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.7643, allocations: 187.5 kB / 0.5783 GB, free: 1.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.7646, allocations: 0.7252 MB / 0.579 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of SimCode: time 2.9e-07/0.7646, allocations: 4 kB / 0.579 GB, free: 0.582 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Thermal_Examples_MuscleHeat.fmu > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)