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.07978/0.07978, allocations: 15.29 MB / 30.79 MB, free: 4.078 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.0009181/0.0009181, allocations: 107.9 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.001023/0.001023, 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.194/1.194, allocations: 222.9 MB / 268.7 MB, free: 6.883 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1146/0.1146, allocations: 23.35 MB / 346.4 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 119.8 kB / 418.3 MB, free: 30.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0788/0.08066, allocations: 59.36 MB / 477.7 MB, free: 2.91 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.02749/0.1082, allocations: 21.87 MB / 499.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008759/0.1091, allocations: 482.8 kB / 0.4883 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1092, allocations: 4 kB / 0.4883 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1093, allocations: 27.66 kB / 0.4883 GB, free: 12.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.1094, allocations: 59.48 kB / 0.4884 GB, free: 12.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001033/0.1095, allocations: 23.97 kB / 0.4884 GB, free: 12.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.1097, allocations: 147.1 kB / 0.4885 GB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001026/0.1098, allocations: 33.47 kB / 0.4886 GB, free: 12.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.874e-05/0.1099, allocations: 55.75 kB / 0.4886 GB, free: 12.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.141e-05/0.11, allocations: 51.72 kB / 0.4887 GB, free: 12.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.11, allocations: 7.984 kB / 0.4887 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.301e-05/0.1101, allocations: 12 kB / 0.4887 GB, free: 12.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.923e-05/0.1101, allocations: 19.92 kB / 0.4887 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.046e-05/0.1102, allocations: 55.69 kB / 0.4888 GB, free: 12.22 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.1103, allocations: 119.6 kB / 0.4889 GB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1103, allocations: 3.984 kB / 0.4889 GB, free: 12.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1103, allocations: 0 / 0.4889 GB, free: 12.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1103, allocations: 0 / 0.4889 GB, free: 12.1 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.0004801/0.1108, allocations: 441.1 kB / 0.4893 GB, free: 11.62 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.1109, allocations: 12.03 kB / 0.4893 GB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.057e-05/0.1109, allocations: 38.75 kB / 0.4894 GB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.1109, allocations: 12.84 kB / 0.4894 GB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.1111, allocations: 223.9 kB / 0.4896 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.1112, allocations: 8.375 kB / 0.4896 GB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.1112, allocations: 4.375 kB / 0.4896 GB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.1113, allocations: 73.8 kB / 0.4897 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.1113, allocations: 0 / 0.4897 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.1113, allocations: 0 / 0.4897 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1113, allocations: 4 kB / 0.4897 GB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.012e-05/0.1114, allocations: 43.98 kB / 0.4897 GB, free: 11.16 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.0005172/0.1119, allocations: 483.2 kB / 0.4902 GB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.979e-05/0.1121, allocations: 62.5 kB / 0.4902 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.059e-05/0.1121, allocations: 32.97 kB / 0.4903 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.1121, allocations: 3.938 kB / 0.4903 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.945e-05/0.1121, allocations: 30.56 kB / 0.4903 GB, free: 10.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.1121, allocations: 0 / 0.4903 GB, free: 10.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001819/0.1123, allocations: 85.5 kB / 0.4904 GB, free: 10.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.1124, allocations: 55.34 kB / 0.4904 GB, free: 10.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1125, allocations: 183.8 kB / 0.4906 GB, free: 10.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.1125, allocations: 25.7 kB / 0.4906 GB, free: 10.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.231e-05/0.1126, allocations: 116 kB / 0.4907 GB, free: 9.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.1126, allocations: 19.89 kB / 0.4908 GB, free: 9.949 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.1127, allocations: 25.64 kB / 0.4908 GB, free: 9.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.546e-05/0.1128, allocations: 322.8 kB / 0.4911 GB, free: 9.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.411e-05/0.1128, allocations: 8 kB / 0.4911 GB, free: 9.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.159e-05/0.1128, allocations: 16.25 kB / 0.4911 GB, free: 9.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00024/0.1131, allocations: 72.83 kB / 0.4912 GB, free: 9.496 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1131, allocations: 0 / 0.4912 GB, free: 9.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001092/0.1132, allocations: 77.5 kB / 0.4913 GB, free: 9.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.1132, allocations: 6.188 kB / 0.4913 GB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.1132, allocations: 0 / 0.4913 GB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1132, allocations: 3.984 kB / 0.4913 GB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.506e-05/0.1133, allocations: 15.88 kB / 0.4913 GB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1133, allocations: 4 kB / 0.4913 GB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.124e-05/0.1134, allocations: 4 kB / 0.4913 GB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.1134, allocations: 4 kB / 0.4913 GB, free: 9.379 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.000118/0.1135, allocations: 126.3 kB / 0.4914 GB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.1135, allocations: 11.81 kB / 0.4914 GB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/0.1136, allocations: 17 kB / 0.4914 GB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1136, allocations: 3.938 kB / 0.4915 GB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1136, allocations: 4 kB / 0.4915 GB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.1136, allocations: 0 / 0.4915 GB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.1138, allocations: 201.6 kB / 0.4916 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1138, allocations: 4 kB / 0.4917 GB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.005e-05/0.1139, allocations: 8.188 kB / 0.4917 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1139, allocations: 0 / 0.4917 GB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.1139, allocations: 8 kB / 0.4917 GB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1139, allocations: 3.938 kB / 0.4917 GB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1139, allocations: 0 / 0.4917 GB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.1141, allocations: 191.2 kB / 0.4919 GB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.1141, allocations: 89.05 kB / 0.4919 GB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.1142, allocations: 12 kB / 0.4919 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.906e-05/0.1142, allocations: 3.938 kB / 0.492 GB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.1143, allocations: 3.984 kB / 0.492 GB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.1143, allocations: 8 kB / 0.492 GB, free: 8.602 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.23e-05/0.1144, allocations: 128.4 kB / 0.4921 GB, free: 8.477 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1144, allocations: 0 / 0.4921 GB, free: 8.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.1146, allocations: 23.91 kB / 0.4921 GB, free: 8.453 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 0.0003662/0.115, allocations: 0.7201 MB / 0.4928 GB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.049e-05/0.1151, allocations: 35.98 kB / 0.4928 GB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1151, allocations: 0 / 0.4928 GB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.66e-05/0.1151, allocations: 19.94 kB / 0.4929 GB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003908/0.1155, allocations: 67.62 kB / 0.4929 GB, free: 7.586 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1169, allocations: 1.682 MB / 0.4946 GB, free: 5.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.1171, allocations: 0.7045 MB / 0.4953 GB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.389e-05/0.1172, allocations: 13.08 kB / 0.4953 GB, free: 5.074 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.112e-05/0.1173, allocations: 39.42 kB / 0.4953 GB, free: 5.035 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1173, allocations: 3.938 kB / 0.4953 GB, free: 5.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.1355, allocations: 3.393 MB / 0.4986 GB, free: 1.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.423/6.558, allocations: 7.938 kB / 0.4986 GB, free: 1.668 MB / 366.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)