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/Chemical 1.4.0/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/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/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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) 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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08852/0.08852, allocations: 15.28 MB / 30.91 MB, free: 4.137 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009917/0.0009917, allocations: 114.3 kB / 35.92 MB, free: 3.184 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 193 kB / 41.02 MB, free: 7.109 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 268.9 MB, free: 6.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1413/0.1413, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 115.8 kB / 478.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3004, allocations: 59.35 MB / 0.5251 GB, free: 7.777 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Thermal.mo:312:7-312:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Thermal.Examples.MuscleHeat): time 0.03082/0.3313, allocations: 21.84 MB / 0.5464 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009889/0.3323, allocations: 479.1 kB / 0.5469 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3324, allocations: 4 kB / 0.5469 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.3325, allocations: 26.5 kB / 0.5469 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.3327, allocations: 59.86 kB / 0.547 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001144/0.3328, allocations: 18.38 kB / 0.547 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.333, allocations: 153.5 kB / 0.5471 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.3331, allocations: 33.09 kB / 0.5472 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.735e-05/0.3332, allocations: 55.31 kB / 0.5472 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.767e-05/0.3333, allocations: 50.78 kB / 0.5473 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.058e-05/0.3333, allocations: 7.984 kB / 0.5473 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.186e-05/0.3333, allocations: 12 kB / 0.5473 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.3334, allocations: 18.42 kB / 0.5473 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.906e-05/0.3334, allocations: 66.72 kB / 0.5474 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.3336, allocations: 124.1 kB / 0.5475 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3336, allocations: 0 / 0.5475 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3336, allocations: 0 / 0.5475 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.3336, allocations: 0 / 0.5475 GB, free: 12.34 MB / 398.1 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.0005042/0.3342, allocations: 438.8 kB / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3342, allocations: 12.03 kB / 0.5479 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.3342, allocations: 40.2 kB / 0.5479 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.228e-05/0.3343, allocations: 17.64 kB / 0.548 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.3345, allocations: 230.4 kB / 0.5482 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.3345, allocations: 384 / 0.5482 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.3346, allocations: 12.83 kB / 0.5482 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.3347, allocations: 73.52 kB / 0.5483 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3347, allocations: 8 kB / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.3348, allocations: 0 / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3348, allocations: 0 / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.744e-05/0.3348, allocations: 36.5 kB / 0.5483 GB, free: 11.44 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/0.3354, allocations: 482.9 kB / 0.5488 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.3355, allocations: 66.41 kB / 0.5488 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.227e-05/0.3356, allocations: 26.48 kB / 0.5488 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.3356, allocations: 0 / 0.5488 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.3356, allocations: 31.31 kB / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 7.92e-07/0.3356, allocations: 0 / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002069/0.3359, allocations: 89.62 kB / 0.549 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.3359, allocations: 55.34 kB / 0.549 GB, free: 10.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.3361, allocations: 183.8 kB / 0.5492 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.3361, allocations: 29.7 kB / 0.5492 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.3362, allocations: 116.3 kB / 0.5493 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.3362, allocations: 17.55 kB / 0.5493 GB, free: 10.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.3362, allocations: 18.98 kB / 0.5494 GB, free: 10.28 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.3363, allocations: 331.3 kB / 0.5497 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.734e-05/0.3364, allocations: 8.75 kB / 0.5497 GB, free: 9.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.298e-05/0.3364, allocations: 13.31 kB / 0.5497 GB, free: 9.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.3367, allocations: 68.03 kB / 0.5498 GB, free: 9.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3367, allocations: 0 / 0.5498 GB, free: 9.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001092/0.3368, allocations: 80.05 kB / 0.5498 GB, free: 9.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.3368, allocations: 4.703 kB / 0.5498 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.3368, allocations: 0 / 0.5498 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3368, allocations: 4.062 kB / 0.5499 GB, free: 9.777 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.694e-05/0.3369, allocations: 21.33 kB / 0.5499 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.3369, allocations: 0 / 0.5499 GB, free: 9.758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.488e-05/0.337, allocations: 4.453 kB / 0.5499 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-06/0.337, allocations: 7.938 kB / 0.5499 GB, free: 9.746 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: muscle.relativeHeat:VARIABLE(flow=false start = muscle.relativeHeat_start unit = "J" fixed = true nominal = 4.1868e6 ) "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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001375/0.3371, allocations: 129.8 kB / 0.55 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.357e-05/0.3372, allocations: 15.81 kB / 0.55 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.68e-05/0.3372, allocations: 11.3 kB / 0.55 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3372, allocations: 7.938 kB / 0.55 GB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3372, allocations: 4.5 kB / 0.55 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.3372, allocations: 0 / 0.55 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.3374, allocations: 203 kB / 0.5502 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3375, allocations: 4.609 kB / 0.5502 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.94e-05/0.3375, allocations: 5.359 kB / 0.5502 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.3375, allocations: 4 kB / 0.5503 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.3376, allocations: 0 / 0.5503 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3376, allocations: 3.938 kB / 0.5503 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3376, allocations: 0.6094 kB / 0.5503 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.3378, allocations: 192.5 kB / 0.5504 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-05/0.3378, allocations: 91.06 kB / 0.5505 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.3379, allocations: 4.766 kB / 0.5505 GB, free: 9.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.617e-05/0.3379, allocations: 3.938 kB / 0.5505 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.565e-05/0.338, allocations: 1.547 kB / 0.5505 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.338, allocations: 4 kB / 0.5505 GB, free: 9.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.971e-05/0.3381, allocations: 130.9 kB / 0.5507 GB, free: 8.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3381, allocations: 0 / 0.5507 GB, free: 8.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.3383, allocations: 23.91 kB / 0.5507 GB, free: 8.871 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003868/0.3387, allocations: 0.7268 MB / 0.5514 GB, free: 8.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.604e-05/0.3388, allocations: 34.72 kB / 0.5514 GB, free: 8.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.3388, allocations: 0 / 0.5514 GB, free: 8.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.042e-05/0.3388, allocations: 21.16 kB / 0.5515 GB, free: 8.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.3393, allocations: 71.52 kB / 0.5515 GB, free: 8.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.3408, allocations: 1.692 MB / 0.5532 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.3411, allocations: 0.7106 MB / 0.5539 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.605e-05/0.3412, allocations: 11.67 kB / 0.5539 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.3412, allocations: 34.77 kB / 0.5539 GB, free: 5.547 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3412, allocations: 0 / 0.5539 GB, free: 5.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.3622, allocations: 3.498 MB / 0.5573 GB, free: 3.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.531/7.893, allocations: 11.11 kB / 0.5573 GB, free: 3.207 MB / 398.1 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/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)