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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.101/0.101, allocations: 15.28 MB / 31.54 MB, free: 4.125 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.001094/0.001094, allocations: 111.1 kB / 36.53 MB, free: 3.215 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.001286/0.001286, allocations: 193.1 kB / 41.64 MB, free: 7.152 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.343/1.343, allocations: 222.9 MB / 269.5 MB, free: 6.875 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1281/0.1281, allocations: 23.36 MB / 347.2 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 111.8 kB / 419.7 MB, free: 29.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08867, allocations: 59.36 MB / 479 MB, free: 2.285 MB / 334.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.02809/0.1168, allocations: 21.62 MB / 0.4889 GB, free: 12.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009111/0.1177, allocations: 482.7 kB / 0.4894 GB, free: 12.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.21e-05/0.1178, allocations: 8 kB / 0.4894 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.1179, allocations: 23.73 kB / 0.4894 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.118, allocations: 55.48 kB / 0.4894 GB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000112/0.1182, allocations: 19.97 kB / 0.4895 GB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.1183, allocations: 155.1 kB / 0.4896 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1185, allocations: 37.48 kB / 0.4897 GB, free: 12.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.143e-05/0.1185, allocations: 55.73 kB / 0.4897 GB, free: 11.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.286e-05/0.1186, allocations: 55.7 kB / 0.4898 GB, free: 11.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.1187, allocations: 8 kB / 0.4898 GB, free: 11.92 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.968e-05/0.1187, allocations: 8 kB / 0.4898 GB, free: 11.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.1187, allocations: 19.92 kB / 0.4898 GB, free: 11.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.057e-05/0.1188, allocations: 59.69 kB / 0.4898 GB, free: 11.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1189, allocations: 119.5 kB / 0.49 GB, free: 11.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.1189, allocations: 3.984 kB / 0.49 GB, free: 11.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1189, allocations: 0 / 0.49 GB, free: 11.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.119, allocations: 4 kB / 0.49 GB, free: 11.71 MB / 366.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.0004893/0.1194, allocations: 442.7 kB / 0.4904 GB, free: 11.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.1195, allocations: 8.031 kB / 0.4904 GB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.1195, allocations: 12.84 kB / 0.4904 GB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.1198, allocations: 227.9 kB / 0.4906 GB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.596e-06/0.1198, allocations: 384 / 0.4906 GB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.1198, allocations: 8.375 kB / 0.4906 GB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.1199, allocations: 77.98 kB / 0.4907 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.12, allocations: 0 / 0.4907 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.12, allocations: 4 kB / 0.4907 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.12, allocations: 3.984 kB / 0.4907 GB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.997e-05/0.1201, allocations: 39.36 kB / 0.4908 GB, free: 10.81 MB / 366.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.0005377/0.1206, allocations: 491.2 kB / 0.4912 GB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.1207, allocations: 66.44 kB / 0.4913 GB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.202e-05/0.1208, allocations: 28.97 kB / 0.4913 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.18e-05/0.1208, allocations: 0 / 0.4913 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.886e-05/0.1208, allocations: 34.56 kB / 0.4914 GB, free: 10.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 9.91e-07/0.1208, allocations: 0 / 0.4914 GB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001866/0.121, allocations: 81.5 kB / 0.4914 GB, free: 10.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.1211, allocations: 59.34 kB / 0.4915 GB, free: 9.953 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.1212, allocations: 183.8 kB / 0.4917 GB, free: 9.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.1212, allocations: 25.7 kB / 0.4917 GB, free: 9.734 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.575e-05/0.1213, allocations: 120.1 kB / 0.4918 GB, free: 9.613 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.977e-05/0.1213, allocations: 11.8 kB / 0.4918 GB, free: 9.602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.1214, allocations: 21.66 kB / 0.4918 GB, free: 9.574 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.1215, allocations: 322.8 kB / 0.4921 GB, free: 9.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.758e-05/0.1215, allocations: 12 kB / 0.4921 GB, free: 9.238 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.029e-05/0.1215, allocations: 12 kB / 0.4922 GB, free: 9.227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.1218, allocations: 68.83 kB / 0.4922 GB, free: 9.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1218, allocations: 4 kB / 0.4922 GB, free: 9.152 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001098/0.1219, allocations: 77.5 kB / 0.4923 GB, free: 9.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.1219, allocations: 8 kB / 0.4923 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1219, allocations: 0 / 0.4923 GB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.122, allocations: 3.938 kB / 0.4923 GB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.035e-05/0.122, allocations: 8 kB / 0.4923 GB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.122, allocations: 7.938 kB / 0.4923 GB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.662e-05/0.1221, allocations: 8.359 kB / 0.4923 GB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.293e-06/0.1221, allocations: 7.984 kB / 0.4923 GB, free: 9.027 MB / 366.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.0001168/0.1222, allocations: 126.3 kB / 0.4925 GB, free: 8.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.1223, allocations: 15.81 kB / 0.4925 GB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.663e-05/0.1223, allocations: 16.98 kB / 0.4925 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1223, allocations: 0 / 0.4925 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1223, allocations: 3.938 kB / 0.4925 GB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1223, allocations: 4 kB / 0.4925 GB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001916/0.1225, allocations: 201.6 kB / 0.4927 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1225, allocations: 0 / 0.4927 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.1226, allocations: 8 kB / 0.4927 GB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1226, allocations: 0 / 0.4927 GB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.1226, allocations: 3.984 kB / 0.4927 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1227, allocations: 3.938 kB / 0.4927 GB, free: 8.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1227, allocations: 3.938 kB / 0.4927 GB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001849/0.1228, allocations: 195.3 kB / 0.4929 GB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.434e-05/0.1229, allocations: 89.03 kB / 0.493 GB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.1229, allocations: 4 kB / 0.493 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.594e-05/0.123, allocations: 0 / 0.493 GB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.123, allocations: 7.938 kB / 0.493 GB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-06/0.123, allocations: 0 / 0.493 GB, free: 8.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.388e-05/0.1231, allocations: 132.4 kB / 0.4931 GB, free: 8.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1232, allocations: 0 / 0.4931 GB, free: 8.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002396/0.1234, allocations: 24 kB / 0.4931 GB, free: 8.109 MB / 366.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 6.798e-05/0.1235, allocations: 99.25 kB / 0.4932 GB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.865e-05/0.1236, allocations: 35.92 kB / 0.4933 GB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1236, allocations: 0 / 0.4933 GB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.303e-05/0.1236, allocations: 16 kB / 0.4933 GB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.124, allocations: 56.27 kB / 0.4933 GB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.1245, allocations: 331.3 kB / 0.4937 GB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.1248, allocations: 0.7084 MB / 0.4944 GB, free: 6.809 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.1248, allocations: 17.06 kB / 0.4944 GB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.1249, allocations: 11.44 kB / 0.4944 GB, free: 6.777 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1249, allocations: 0 / 0.4944 GB, free: 6.777 MB / 366.1 MB Notification: Performance of Templates: time 0.003937/0.1288, allocations: 1.76 MB / 0.4961 GB, free: 5.047 MB / 366.1 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 -s gbode -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)