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.09898/0.09898, allocations: 15.28 MB / 30.78 MB, free: 4.082 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.001041/0.001041, allocations: 107 kB / 35.77 MB, free: 3.281 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.001399/0.001399, allocations: 193.1 kB / 40.88 MB, free: 7.195 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.368/1.368, allocations: 222.9 MB / 268.7 MB, free: 6.887 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1377/0.1377, allocations: 23.35 MB / 346.4 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 115.8 kB / 418.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09659, allocations: 59.37 MB / 477.6 MB, free: 2.984 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.02944/0.1261, allocations: 21.82 MB / 499.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.127, allocations: 486.8 kB / 499.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1272, allocations: 7.938 kB / 499.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.1273, allocations: 15.8 kB / 499.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001188/0.1274, allocations: 63.42 kB / 499.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001133/0.1276, allocations: 19.97 kB / 500 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.1277, allocations: 155.1 kB / 0.4884 GB, free: 12.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.1279, allocations: 45.41 kB / 0.4884 GB, free: 12.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.458e-05/0.128, allocations: 47.75 kB / 0.4885 GB, free: 12.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.1281, allocations: 51.72 kB / 0.4885 GB, free: 12.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.1281, allocations: 8 kB / 0.4885 GB, free: 12.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.355e-05/0.1281, allocations: 4 kB / 0.4885 GB, free: 12.41 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.414e-05/0.1281, allocations: 19.92 kB / 0.4886 GB, free: 12.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.779e-05/0.1282, allocations: 67.67 kB / 0.4886 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.1284, allocations: 115.5 kB / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1284, allocations: 4 kB / 0.4887 GB, free: 12.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1284, allocations: 4 kB / 0.4887 GB, free: 12.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1284, allocations: 3.938 kB / 0.4888 GB, free: 12.2 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.0005085/0.1289, allocations: 433.2 kB / 0.4892 GB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.129, allocations: 12.03 kB / 0.4892 GB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.129, allocations: 12.84 kB / 0.4892 GB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002159/0.1292, allocations: 223.9 kB / 0.4894 GB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1293, allocations: 8.375 kB / 0.4894 GB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.175e-05/0.1293, allocations: 4.375 kB / 0.4894 GB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.1294, allocations: 77.98 kB / 0.4895 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1294, allocations: 0 / 0.4895 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.1295, allocations: 4 kB / 0.4895 GB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.1295, allocations: 7.938 kB / 0.4895 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.724e-05/0.1296, allocations: 31.98 kB / 0.4895 GB, free: 11.31 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.0005657/0.1301, allocations: 491.2 kB / 0.49 GB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.1302, allocations: 58.5 kB / 0.4901 GB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.08e-05/0.1303, allocations: 24.98 kB / 0.4901 GB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.1303, allocations: 0 / 0.4901 GB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.1303, allocations: 34.56 kB / 0.4901 GB, free: 10.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.1303, allocations: 3.938 kB / 0.4901 GB, free: 10.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001937/0.1305, allocations: 85.69 kB / 0.4902 GB, free: 10.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/0.1306, allocations: 59.34 kB / 0.4903 GB, free: 10.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.1307, allocations: 183.7 kB / 0.4904 GB, free: 10.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.1308, allocations: 29.69 kB / 0.4905 GB, free: 10.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.1308, allocations: 112 kB / 0.4906 GB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.1309, allocations: 19.89 kB / 0.4906 GB, free: 10.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.1309, allocations: 17.72 kB / 0.4906 GB, free: 10.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.177e-05/0.131, allocations: 318.8 kB / 0.4909 GB, free: 9.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.131, allocations: 19.98 kB / 0.4909 GB, free: 9.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.481e-05/0.1311, allocations: 20.06 kB / 0.4909 GB, free: 9.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.1313, allocations: 64.83 kB / 0.491 GB, free: 9.652 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1313, allocations: 0 / 0.491 GB, free: 9.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001182/0.1315, allocations: 81.45 kB / 0.4911 GB, free: 9.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.1315, allocations: 4 kB / 0.4911 GB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1315, allocations: 4 kB / 0.4911 GB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1315, allocations: 3.984 kB / 0.4911 GB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-05/0.1316, allocations: 8 kB / 0.4911 GB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1316, allocations: 3.938 kB / 0.4911 GB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.476e-05/0.1317, allocations: 4 kB / 0.4911 GB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-06/0.1317, allocations: 0 / 0.4911 GB, free: 9.539 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 = 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 () * 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.0001376/0.1318, allocations: 118.4 kB / 0.4912 GB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.1319, allocations: 11.81 kB / 0.4912 GB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.98e-05/0.1319, allocations: 24.98 kB / 0.4913 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1319, allocations: 0 / 0.4913 GB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1319, allocations: 3.938 kB / 0.4913 GB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1319, allocations: 4 kB / 0.4913 GB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.1321, allocations: 209.5 kB / 0.4915 GB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1321, allocations: 192 / 0.4915 GB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.025e-05/0.1322, allocations: 12 kB / 0.4915 GB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1322, allocations: 0 / 0.4915 GB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.1322, allocations: 0 / 0.4915 GB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.1322, allocations: 3.984 kB / 0.4915 GB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1322, allocations: 11.88 kB / 0.4915 GB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001821/0.1324, allocations: 191.3 kB / 0.4917 GB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.1325, allocations: 89.03 kB / 0.4918 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.1325, allocations: 7.938 kB / 0.4918 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.39e-05/0.1326, allocations: 4 kB / 0.4918 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.1326, allocations: 3.938 kB / 0.4918 GB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.1326, allocations: 0 / 0.4918 GB, free: 8.762 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.766e-05/0.1327, allocations: 136.4 kB / 0.4919 GB, free: 8.629 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1327, allocations: 4.062 kB / 0.4919 GB, free: 8.625 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.133, allocations: 20 kB / 0.4919 GB, free: 8.605 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 7.549e-05/0.1331, allocations: 95.19 kB / 0.492 GB, free: 8.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.1332, allocations: 39.92 kB / 0.4921 GB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.1332, allocations: 0 / 0.4921 GB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.805e-05/0.1332, allocations: 12 kB / 0.4921 GB, free: 8.449 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.1337, allocations: 82.78 kB / 0.4921 GB, free: 8.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005159/0.1342, allocations: 315.5 kB / 0.4924 GB, free: 8.043 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.1344, allocations: 0.7123 MB / 0.4931 GB, free: 7.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.518e-05/0.1345, allocations: 9.078 kB / 0.4932 GB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.591e-05/0.1345, allocations: 15.44 kB / 0.4932 GB, free: 7.273 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1345, allocations: 0 / 0.4932 GB, free: 7.273 MB / 366.1 MB Notification: Performance of Templates: time 0.004123/0.1387, allocations: 1.751 MB / 0.4949 GB, free: 5.547 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 -lv LOG_STATS > Physiolibrary_Physiolibrary.Thermal.Examples.MuscleHeat.pipe 2>&1)