Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Network.conf.json 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/HanserModelica 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Network,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Network",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004737/0.004737, allocations: 170.9 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03802/0.03802, allocations: 8.794 MB / 24.65 MB, free: 4.16 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 223.2 MB / 250.7 MB, free: 6.547 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008266/0.0008263, allocations: 93.98 kB / 304 MB, free: 4.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003271/0.0003271, allocations: 12 kB / 367.1 MB, free: 4.852 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2323, allocations: 52.55 MB / 419.7 MB, free: 48.2 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08969/0.322, allocations: 77.65 MB / 497.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001782/0.3222, allocations: 63.97 kB / 497.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003851/0.3261, allocations: 1.637 MB / 499 MB, free: 9.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3261, allocations: 0 / 499 MB, free: 9.758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3262, allocations: 4 kB / 499 MB, free: 9.754 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0003922/0.3266, allocations: 384.2 kB / 499.4 MB, free: 9.332 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3266, allocations: 11.91 kB / 499.4 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.3267, allocations: 46.55 kB / 499.5 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.3267, allocations: 7.906 kB / 499.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.3268, allocations: 171 kB / 499.7 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.3268, allocations: 12 kB / 499.7 MB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.3269, allocations: 11.94 kB / 499.7 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.327, allocations: 94.41 kB / 499.8 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3271, allocations: 0 / 499.8 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3271, allocations: 11.95 kB / 499.8 MB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.3271, allocations: 4 kB / 499.8 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001144/0.3272, allocations: 55.83 kB / 499.8 MB, free: 8.863 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006465/0.3279, allocations: 0.4975 MB / 0.4886 GB, free: 8.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.3281, allocations: 90.48 kB / 0.4887 GB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.3281, allocations: 3.984 kB / 0.4887 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.759e-05/0.3281, allocations: 30.56 kB / 0.4887 GB, free: 8.156 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 2.415e-06/0.3282, allocations: 0 / 0.4887 GB, free: 8.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004884/0.3286, allocations: 231.6 kB / 0.4889 GB, free: 7.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.3287, allocations: 55.41 kB / 0.489 GB, free: 7.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.465e-05/0.3288, allocations: 109.2 kB / 0.4891 GB, free: 7.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.3288, allocations: 25.7 kB / 0.4891 GB, free: 7.688 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.3289, allocations: 99.97 kB / 0.4892 GB, free: 7.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.3289, allocations: 31.55 kB / 0.4893 GB, free: 7.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.3289, allocations: 4 kB / 0.4893 GB, free: 7.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.677e-05/0.329, allocations: 314.8 kB / 0.4896 GB, free: 7.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.662e-05/0.329, allocations: 23.98 kB / 0.4896 GB, free: 7.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.988e-05/0.3291, allocations: 29.7 kB / 0.4896 GB, free: 7.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.215e-05/0.3291, allocations: 24.5 kB / 0.4896 GB, free: 7.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.3291, allocations: 0 / 0.4896 GB, free: 7.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002023/0.3294, allocations: 114.3 kB / 0.4897 GB, free: 7.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3294, allocations: 11.98 kB / 0.4898 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3294, allocations: 0 / 0.4898 GB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001476/0.3295, allocations: 28.84 kB / 0.4898 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.264e-05/0.3296, allocations: 16 kB / 0.4898 GB, free: 6.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009931/0.3306, allocations: 1.323 MB / 0.4911 GB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.79e-05/0.3307, allocations: 7.938 kB / 0.4911 GB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.3307, allocations: 4 kB / 0.4911 GB, free: 5.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.934e-05/0.3308, allocations: 125.8 kB / 0.4912 GB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.712e-05/0.3308, allocations: 7.953 kB / 0.4912 GB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.565e-05/0.3309, allocations: 16.42 kB / 0.4912 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.3309, allocations: 0 / 0.4912 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3309, allocations: 4 kB / 0.4912 GB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3309, allocations: 0 / 0.4912 GB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3311, allocations: 197.7 kB / 0.4914 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.3311, allocations: 4.266 kB / 0.4914 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.937e-05/0.3312, allocations: 12 kB / 0.4915 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.849e-05/0.3313, allocations: 28.83 kB / 0.4915 GB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.3313, allocations: 11.95 kB / 0.4915 GB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008868/0.3322, allocations: 1.327 MB / 0.4928 GB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3322, allocations: 0 / 0.4928 GB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.3325, allocations: 224.2 kB / 0.493 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.3325, allocations: 85.12 kB / 0.4931 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.3326, allocations: 3.938 kB / 0.4931 GB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.3326, allocations: 3.906 kB / 0.4931 GB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.3326, allocations: 7.984 kB / 0.4931 GB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.3327, allocations: 8 kB / 0.4931 GB, free: 3.215 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.529e-05/0.3327, allocations: 91.34 kB / 0.4932 GB, free: 3.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3327, allocations: 0 / 0.4932 GB, free: 3.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002419/0.333, allocations: 24.38 kB / 0.4932 GB, free: 3.102 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000525/0.3335, allocations: 0.7717 MB / 0.494 GB, free: 2.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002515/0.3338, allocations: 171.1 kB / 0.4941 GB, free: 2.117 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3338, allocations: 0 / 0.4941 GB, free: 2.117 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.3339, allocations: 142.7 kB / 0.4943 GB, free: 1.965 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.3341, allocations: 8 kB / 0.4943 GB, free: 1.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.3352, allocations: 0.8566 MB / 0.4951 GB, free: 1.043 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.3355, allocations: 0.7043 MB / 0.4958 GB, free: 320 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.01e-05/0.3355, allocations: 8.656 kB / 0.4958 GB, free: 312 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.721e-05/0.3355, allocations: 23.44 kB / 0.4958 GB, free: 292 kB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3356, allocations: 0 / 0.4958 GB, free: 292 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01201/0.3476, allocations: 2.094 MB / 0.4979 GB, free: 14.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001895/0.3478, allocations: 178.9 kB / 0.498 GB, free: 14.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.489/1.836, allocations: 0 / 0.498 GB, free: 14.1 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Thermal.Network.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Network.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Network.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Network.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Network_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Network.fmu > HanserModelica_HanserModelica.Thermal.Network.pipe 2>&1)