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/ModelicaServices 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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 223.3 MB / 239.4 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009176/0.0009176, allocations: 176.6 kB / 290.6 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03365/0.03365, allocations: 8.79 MB / 350.5 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003552/0.000355, allocations: 10.67 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09801, allocations: 52.56 MB / 466.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Network): time 0.002033/0.1001, allocations: 1.435 MB / 467.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002744/0.1004, allocations: 95.66 kB / 468 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.725e-05/0.1005, allocations: 4 kB / 468 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.94e-05/0.1005, allocations: 7.922 kB / 468 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.113e-05/0.1006, allocations: 31.75 kB / 468 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.1008, allocations: 19.94 kB / 468.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.1009, allocations: 115.4 kB / 468.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1011, allocations: 39.95 kB / 468.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.933e-05/0.1011, allocations: 35.86 kB / 468.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.007e-05/0.1012, allocations: 39.84 kB / 468.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.295e-05/0.1013, allocations: 4 kB / 468.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.9e-05/0.1013, allocations: 4 kB / 468.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.1013, allocations: 19.92 kB / 468.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.1014, allocations: 65.52 kB / 468.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.1016, allocations: 107.8 kB / 468.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1016, allocations: 0 / 468.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1016, allocations: 0 / 468.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1016, allocations: 0 / 468.5 MB, free: 10.98 MB / 302.1 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.0005191/0.1021, allocations: 391.2 kB / 468.9 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1022, allocations: 8.031 kB / 468.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.685e-05/0.1022, allocations: 42.73 kB / 468.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.659e-05/0.1023, allocations: 8.844 kB / 468.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.1024, allocations: 180.2 kB / 469.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1024, allocations: 8.375 kB / 469.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.1025, allocations: 12.38 kB / 469.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.1026, allocations: 89.06 kB / 469.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1027, allocations: 7.938 kB / 469.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1027, allocations: 8 kB / 469.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.1027, allocations: 0 / 469.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.1028, allocations: 63.83 kB / 469.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.1035, allocations: 0.4897 MB / 469.8 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.1038, allocations: 86.48 kB / 469.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.469e-05/0.1039, allocations: 40.8 kB / 469.9 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.135e-05/0.1039, allocations: 3.984 kB / 469.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1039, allocations: 42.48 kB / 469.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1039, allocations: 0 / 469.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.000529/0.1045, allocations: 231.5 kB / 470.2 MB, free: 9.074 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.1045, allocations: 55.41 kB / 470.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.741e-05/0.1046, allocations: 113.8 kB / 470.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.1046, allocations: 29.7 kB / 470.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.1047, allocations: 103.9 kB / 470.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.1047, allocations: 35.55 kB / 470.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.476e-05/0.1048, allocations: 13.72 kB / 470.5 MB, free: 8.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1049, allocations: 318.8 kB / 470.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.67e-05/0.1049, allocations: 16 kB / 470.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.189e-05/0.105, allocations: 37.64 kB / 470.9 MB, free: 8.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.936e-05/0.1051, allocations: 53.72 kB / 470.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.1051, allocations: 7.938 kB / 470.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001965/0.1053, allocations: 114.9 kB / 471.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1053, allocations: 4 kB / 471.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.1054, allocations: 4 kB / 471.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.1055, allocations: 24.84 kB / 471.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.86e-05/0.1056, allocations: 15.98 kB / 471.1 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.1067, allocations: 1.323 MB / 472.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.987e-05/0.1068, allocations: 11.95 kB / 472.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.1068, allocations: 0 / 472.4 MB, free: 6.602 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.547e-05/0.1069, allocations: 123.6 kB / 472.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.1069, allocations: 11.91 kB / 472.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.1069, allocations: 12.38 kB / 472.6 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.1069, allocations: 3.938 kB / 472.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.107, allocations: 0 / 472.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.107, allocations: 0 / 472.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002007/0.1072, allocations: 197.6 kB / 472.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1072, allocations: 144 / 472.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.642e-05/0.1073, allocations: 15.94 kB / 472.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.491e-05/0.1074, allocations: 32.83 kB / 472.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.1074, allocations: 11.98 kB / 472.8 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009451/0.1083, allocations: 1.319 MB / 474.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1083, allocations: 0 / 474.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002737/0.1086, allocations: 228.2 kB / 474.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.179e-05/0.1087, allocations: 88.98 kB / 474.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.288e-05/0.1087, allocations: 0 / 474.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.419e-05/0.1088, allocations: 8.062 kB / 474.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.186e-05/0.1088, allocations: 11.98 kB / 474.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.1088, allocations: 4 kB / 474.5 MB, free: 4.316 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.135e-05/0.1089, allocations: 91.27 kB / 474.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1089, allocations: 0 / 474.6 MB, free: 4.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.1091, allocations: 31.91 kB / 474.6 MB, free: 4.195 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005534/0.1097, allocations: 0.7527 MB / 475.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002794/0.11, allocations: 170.5 kB / 475.5 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.11, allocations: 4 kB / 475.5 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.1101, allocations: 150.6 kB / 475.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.1105, allocations: 18.45 kB / 475.7 MB, free: 3.055 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1122, allocations: 1.635 MB / 477.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.1125, allocations: 0.6926 MB / 478 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.4e-05/0.1125, allocations: 8.656 kB / 478 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.1126, allocations: 23.44 kB / 478.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1126, allocations: 0 / 478.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01215/0.1248, allocations: 2.14 MB / 480.2 MB, free: 14.56 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.125, allocations: 200 kB / 480.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/1.842, allocations: 4 kB / 480.4 MB, free: 14.3 MB / 318.1 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/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)