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.09056/0.09056, allocations: 15.28 MB / 30.91 MB, free: 4.273 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.00102/0.00102, allocations: 103.8 kB / 35.92 MB, free: 3.156 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.00125/0.00125, allocations: 193.1 kB / 41.02 MB, free: 7.18 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.425/1.425, allocations: 222.9 MB / 268.9 MB, free: 6.871 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1628/0.1628, allocations: 23.36 MB / 346.6 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 108 kB / 478.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3373, allocations: 59.36 MB / 0.5251 GB, free: 7.789 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.03509/0.3724, allocations: 21.87 MB / 0.5464 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.3737, allocations: 479.6 kB / 0.5469 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.3738, allocations: 7.938 kB / 0.5469 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.374, allocations: 22.66 kB / 0.5469 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000133/0.3741, allocations: 56.19 kB / 0.547 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001406/0.3743, allocations: 26.14 kB / 0.547 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002181/0.3745, allocations: 150 kB / 0.5472 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.3747, allocations: 40.5 kB / 0.5472 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.297e-05/0.3748, allocations: 56.44 kB / 0.5472 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.3749, allocations: 54.03 kB / 0.5473 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.3749, allocations: 4 kB / 0.5473 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.421e-05/0.3749, allocations: 8 kB / 0.5473 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.375, allocations: 19.12 kB / 0.5473 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.4e-05/0.3751, allocations: 65.22 kB / 0.5474 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.3753, allocations: 125.1 kB / 0.5475 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3753, allocations: 4 kB / 0.5475 GB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3753, allocations: 0 / 0.5475 GB, free: 12.33 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.3753, allocations: 0 / 0.5475 GB, free: 12.33 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.0006493/0.376, allocations: 430.1 kB / 0.5479 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.376, allocations: 8.875 kB / 0.5479 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.3761, allocations: 39.83 kB / 0.548 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.3761, allocations: 12.84 kB / 0.548 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.3765, allocations: 231.2 kB / 0.5482 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.3765, allocations: 8.375 kB / 0.5482 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.3765, allocations: 4.375 kB / 0.5482 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/0.3767, allocations: 74.08 kB / 0.5483 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3767, allocations: 3.938 kB / 0.5483 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3767, allocations: 8 kB / 0.5483 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.3768, allocations: 4 kB / 0.5483 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.232e-05/0.3769, allocations: 39.73 kB / 0.5483 GB, free: 11.43 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.0007101/0.3776, allocations: 487.6 kB / 0.5488 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.3777, allocations: 54.42 kB / 0.5489 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.375e-05/0.3778, allocations: 26.3 kB / 0.5489 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.3778, allocations: 4 kB / 0.5489 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.3778, allocations: 35.36 kB / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.3778, allocations: 0 / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002407/0.3781, allocations: 89.25 kB / 0.549 GB, free: 10.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.3781, allocations: 56.09 kB / 0.5491 GB, free: 10.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.3783, allocations: 183.8 kB / 0.5492 GB, free: 10.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.3784, allocations: 25.7 kB / 0.5493 GB, free: 10.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.3785, allocations: 116.2 kB / 0.5494 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.3785, allocations: 21.55 kB / 0.5494 GB, free: 10.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.3786, allocations: 18.38 kB / 0.5494 GB, free: 10.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3787, allocations: 323.9 kB / 0.5497 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/0.3787, allocations: 8.578 kB / 0.5497 GB, free: 9.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.741e-05/0.3788, allocations: 17.27 kB / 0.5497 GB, free: 9.926 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003008/0.3791, allocations: 75.78 kB / 0.5498 GB, free: 9.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3791, allocations: 0 / 0.5498 GB, free: 9.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000115/0.3792, allocations: 76.19 kB / 0.5499 GB, free: 9.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3792, allocations: 11.78 kB / 0.5499 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3793, allocations: 0 / 0.5499 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3793, allocations: 0 / 0.5499 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.351e-05/0.3794, allocations: 17.39 kB / 0.5499 GB, free: 9.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3794, allocations: 4 kB / 0.5499 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.449e-05/0.3794, allocations: 4.734 kB / 0.5499 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-06/0.3794, allocations: 0 / 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.0001862/0.3796, allocations: 125.3 kB / 0.55 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.3797, allocations: 15.75 kB / 0.5501 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.155e-05/0.3797, allocations: 19.2 kB / 0.5501 GB, free: 9.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3797, allocations: 8.641 kB / 0.5501 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3798, allocations: 0 / 0.5501 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3798, allocations: 0.6094 kB / 0.5501 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.38, allocations: 202.9 kB / 0.5503 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.38, allocations: 4.188 kB / 0.5503 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.711e-05/0.3801, allocations: 9.5 kB / 0.5503 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3801, allocations: 4 kB / 0.5503 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.3801, allocations: 4 kB / 0.5503 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3801, allocations: 3.938 kB / 0.5503 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3801, allocations: 0.8438 kB / 0.5503 GB, free: 9.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.3804, allocations: 184.6 kB / 0.5505 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.3805, allocations: 86.88 kB / 0.5506 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.3805, allocations: 4.703 kB / 0.5506 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.747e-05/0.3806, allocations: 7.938 kB / 0.5506 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-05/0.3806, allocations: 9.453 kB / 0.5506 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.3806, allocations: 4 kB / 0.5506 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.3807, allocations: 134.9 kB / 0.5507 GB, free: 8.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3808, allocations: 0 / 0.5507 GB, free: 8.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.381, allocations: 23.91 kB / 0.5507 GB, free: 8.859 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.0005023/0.3815, allocations: 0.7152 MB / 0.5514 GB, free: 8.121 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.3816, allocations: 38.84 kB / 0.5515 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.3816, allocations: 0 / 0.5515 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.968e-05/0.3817, allocations: 16.8 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.0004675/0.3822, allocations: 71.78 kB / 0.5516 GB, free: 8.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.3839, allocations: 1.695 MB / 0.5532 GB, free: 6.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.3842, allocations: 0.7103 MB / 0.5539 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.424e-05/0.3843, allocations: 15.97 kB / 0.5539 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.3844, allocations: 38.53 kB / 0.554 GB, free: 5.535 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3844, allocations: 0 / 0.554 GB, free: 5.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.4065, allocations: 3.45 MB / 0.5573 GB, free: 3.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.754/8.16, allocations: 15.02 kB / 0.5573 GB, free: 3.246 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)