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.1263/0.1263, allocations: 15.28 MB / 30.91 MB, free: 4.148 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.001217/0.001217, allocations: 107 kB / 35.92 MB, free: 3.191 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.001403/0.001403, allocations: 193.1 kB / 41.02 MB, free: 7.129 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.461/1.461, allocations: 222.9 MB / 268.9 MB, free: 6.785 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1429/0.1429, allocations: 23.36 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003638/0.003638, allocations: 112 kB / 478.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3431, 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.03417/0.3773, allocations: 22.34 MB / 0.5469 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001181/0.3785, allocations: 481.9 kB / 0.5474 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.3786, allocations: 7.938 kB / 0.5474 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3788, allocations: 30.98 kB / 0.5474 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.3789, allocations: 51.88 kB / 0.5475 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.379, allocations: 22.55 kB / 0.5475 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.3793, allocations: 150 kB / 0.5476 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.3794, allocations: 32.02 kB / 0.5477 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.917e-05/0.3795, allocations: 48.12 kB / 0.5477 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.3796, allocations: 51.3 kB / 0.5477 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.3796, allocations: 11.94 kB / 0.5478 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.677e-05/0.3797, allocations: 12 kB / 0.5478 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.993e-05/0.3797, allocations: 17.52 kB / 0.5478 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.379e-05/0.3798, allocations: 66.45 kB / 0.5478 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002091/0.38, allocations: 120.3 kB / 0.548 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.38, allocations: 0 / 0.548 GB, free: 11.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.38, allocations: 0 / 0.548 GB, free: 11.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.38, allocations: 0 / 0.548 GB, free: 11.86 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.000596/0.3806, allocations: 446.7 kB / 0.5484 GB, free: 11.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3806, allocations: 12.03 kB / 0.5484 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.347e-05/0.3807, allocations: 40.62 kB / 0.5484 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.3807, allocations: 12.84 kB / 0.5485 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.381, allocations: 223.4 kB / 0.5487 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.381, allocations: 8.375 kB / 0.5487 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.279e-05/0.381, allocations: 4.375 kB / 0.5487 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.3812, allocations: 81.34 kB / 0.5488 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.3812, allocations: 7.938 kB / 0.5488 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3812, allocations: 4 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.3812, allocations: 4 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.698e-05/0.3813, allocations: 39.83 kB / 0.5488 GB, free: 10.95 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.0006992/0.382, allocations: 480 kB / 0.5493 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001425/0.3822, allocations: 53.67 kB / 0.5493 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.201e-05/0.3822, allocations: 26.77 kB / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.3822, allocations: 0 / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.3823, allocations: 31.17 kB / 0.5494 GB, free: 10.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.31e-07/0.3823, allocations: 0 / 0.5494 GB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002159/0.3825, allocations: 85.11 kB / 0.5495 GB, free: 10.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3825, allocations: 60 kB / 0.5495 GB, free: 10.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.3827, allocations: 180.2 kB / 0.5497 GB, free: 9.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.3827, allocations: 29.7 kB / 0.5497 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.3828, allocations: 120.6 kB / 0.5498 GB, free: 9.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.3829, allocations: 21.16 kB / 0.5498 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.3829, allocations: 22.94 kB / 0.5499 GB, free: 9.793 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.3831, allocations: 326.7 kB / 0.5502 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.055e-05/0.3831, allocations: 13.55 kB / 0.5502 GB, free: 9.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.423e-05/0.3831, allocations: 8.797 kB / 0.5502 GB, free: 9.449 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.3834, allocations: 80.25 kB / 0.5503 GB, free: 9.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3834, allocations: 0 / 0.5503 GB, free: 9.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001271/0.3835, allocations: 76.38 kB / 0.5503 GB, free: 9.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3836, allocations: 4 kB / 0.5504 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3836, allocations: 0.5625 kB / 0.5504 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3836, allocations: 0 / 0.5504 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-05/0.3837, allocations: 13.06 kB / 0.5504 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3837, allocations: 0.5156 kB / 0.5504 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.965e-05/0.3837, allocations: 11.89 kB / 0.5504 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.3837, allocations: 4 kB / 0.5504 GB, free: 9.266 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.0001773/0.3839, allocations: 131.4 kB / 0.5505 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.084e-05/0.3839, allocations: 11.91 kB / 0.5505 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.084e-05/0.384, allocations: 15.34 kB / 0.5505 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.384, allocations: 3.938 kB / 0.5505 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.384, allocations: 0.6562 kB / 0.5505 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.384, allocations: 0 / 0.5505 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002474/0.3842, allocations: 207 kB / 0.5507 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3842, allocations: 4 kB / 0.5507 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.477e-05/0.3843, allocations: 9.312 kB / 0.5507 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3843, allocations: 0 / 0.5507 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.3843, allocations: 4.562 kB / 0.5508 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3843, allocations: 3.938 kB / 0.5508 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3843, allocations: 4.609 kB / 0.5508 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.3846, allocations: 184.5 kB / 0.5509 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/0.3846, allocations: 94.97 kB / 0.551 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.3847, allocations: 4.625 kB / 0.551 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.13e-05/0.3848, allocations: 8.062 kB / 0.551 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.3848, allocations: 5.453 kB / 0.551 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.3848, allocations: 0 / 0.551 GB, free: 8.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.3849, allocations: 135.4 kB / 0.5512 GB, free: 8.406 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3849, allocations: 0 / 0.5512 GB, free: 8.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.3851, allocations: 24 kB / 0.5512 GB, free: 8.383 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.0005353/0.3857, allocations: 0.7188 MB / 0.5519 GB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.3858, allocations: 30.52 kB / 0.5519 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3858, allocations: 0 / 0.5519 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.338e-05/0.3858, allocations: 21.3 kB / 0.5519 GB, free: 7.594 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.3863, allocations: 72.42 kB / 0.552 GB, free: 7.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.3881, allocations: 1.695 MB / 0.5537 GB, free: 5.828 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.3885, allocations: 0.7109 MB / 0.5544 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.791e-05/0.3886, allocations: 15.28 kB / 0.5544 GB, free: 5.086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.3886, allocations: 34.34 kB / 0.5544 GB, free: 5.059 MB / 398.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3886, allocations: 0 / 0.5544 GB, free: 5.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.4153, allocations: 3.46 MB / 0.5578 GB, free: 2.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.536, allocations: 7.922 kB / 0.5578 GB, free: 2.742 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)