Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.Coupling.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.Coupling,fileNamePrefix="HanserModelica_HanserModelica_Thermal_Coupling",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.0009618/0.0009616, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.369/1.369, allocations: 223.3 MB / 239 MB, free: 5.48 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.001332/0.001332, allocations: 180.5 kB / 290.3 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03332/0.03332, allocations: 8.787 MB / 350.2 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000348/0.0003481, allocations: 8.812 kB / 413.3 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.08937, allocations: 52.56 MB / 465.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.00284/0.09225, allocations: 2.036 MB / 467.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.09334, allocations: 0.546 MB / 468.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.09355, allocations: 4 kB / 468.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.09372, allocations: 23.77 kB / 468.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002113/0.09394, allocations: 71.45 kB / 468.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002575/0.0942, allocations: 35.97 kB / 468.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.09457, allocations: 230.9 kB / 468.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.09478, allocations: 68.48 kB / 468.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.09496, allocations: 79.66 kB / 468.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001861/0.09516, allocations: 87.62 kB / 469 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.09521, allocations: 8 kB / 469 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.929e-05/0.09525, allocations: 12 kB / 469 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.258e-05/0.0953, allocations: 35.83 kB / 469.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.038e-05/0.0954, allocations: 61.58 kB / 469.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.09561, allocations: 159.5 kB / 469.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.09562, allocations: 0 / 469.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09563, allocations: 0 / 469.3 MB, free: 9.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.09564, allocations: 0 / 469.3 MB, free: 9.961 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000793/0.09644, allocations: 486.6 kB / 469.8 MB, free: 9.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.09649, allocations: 11.97 kB / 469.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.993e-05/0.09657, allocations: 58.48 kB / 469.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.09664, allocations: 27.67 kB / 469.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.09692, allocations: 232.1 kB / 470.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.09695, allocations: 15.95 kB / 470.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.097, allocations: 24 kB / 470.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.09733, allocations: 179.3 kB / 470.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.09736, allocations: 0 / 470.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.09738, allocations: 12 kB / 470.3 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.0974, allocations: 7.953 kB / 470.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.09763, allocations: 115.8 kB / 470.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.09875, allocations: 0.748 MB / 471.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.09904, allocations: 130.7 kB / 471.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.542e-05/0.09915, allocations: 64.81 kB / 471.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.09917, allocations: 0 / 471.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.09938, allocations: 99.31 kB / 471.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.09939, allocations: 0 / 471.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006567/0.1001, allocations: 289.2 kB / 471.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.1001, allocations: 55.41 kB / 471.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001639/0.1003, allocations: 187.1 kB / 472 MB, free: 7.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.1003, allocations: 25.7 kB / 472 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/0.1004, allocations: 140.2 kB / 472.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.436e-05/0.1004, allocations: 51.25 kB / 472.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.1005, allocations: 0 / 472.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1006, allocations: 330.8 kB / 472.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.388e-05/0.1007, allocations: 35.98 kB / 472.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.194e-05/0.1008, allocations: 72.28 kB / 472.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.314e-05/0.1008, allocations: 36 kB / 472.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1009, allocations: 0 / 472.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003257/0.1012, allocations: 192.2 kB / 472.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1012, allocations: 8 kB / 472.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1012, allocations: 0 / 472.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/0.1014, allocations: 32.84 kB / 472.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.1015, allocations: 23.98 kB / 472.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.1026, allocations: 1.363 MB / 474.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.1028, allocations: 27.8 kB / 474.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.1028, allocations: 8 kB / 474.3 MB, free: 4.504 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,switch.control,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.1029, allocations: 134.4 kB / 474.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.6e-05/0.1029, allocations: 19.77 kB / 474.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.603e-05/0.103, allocations: 25.66 kB / 474.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.103, allocations: 7.922 kB / 474.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.103, allocations: 0 / 474.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.103, allocations: 0 / 474.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.1033, allocations: 257.5 kB / 474.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1033, allocations: 0 / 474.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.1034, allocations: 27.94 kB / 474.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.1035, allocations: 32.84 kB / 474.8 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.1036, allocations: 4 kB / 474.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009986/0.1046, allocations: 1.359 MB / 476.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1046, allocations: 0 / 476.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.105, allocations: 236.8 kB / 476.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.854e-05/0.1051, allocations: 96.94 kB / 476.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.1051, allocations: 4 kB / 476.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1052, allocations: 24.11 kB / 476.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.1053, allocations: 11.98 kB / 476.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.1053, allocations: 0 / 476.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.1054, allocations: 137.2 kB / 476.7 MB, free: 1.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1054, allocations: 0 / 476.7 MB, free: 1.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002938/0.1057, allocations: 59.84 kB / 476.7 MB, free: 1.863 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: 3 ($whenCondition1,switch.control,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006853/0.1064, allocations: 0.7691 MB / 477.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003765/0.1068, allocations: 214.6 kB / 477.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1068, allocations: 0 / 477.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.107, allocations: 174.9 kB / 477.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.1073, allocations: 46.16 kB / 477.9 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.1089, allocations: 1.144 MB / 479.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.1092, allocations: 0.7361 MB / 479.8 MB, free: 14.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.718e-05/0.1093, allocations: 13.55 kB / 479.8 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.258e-05/0.1094, allocations: 55.36 kB / 479.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1094, allocations: 0 / 479.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01449/0.1239, allocations: 3.751 MB / 483.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.1241, allocations: 177.9 kB / 483.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.736/1.86, allocations: 0 / 483.8 MB, free: 10.73 MB / 318.1 MB (rm -f HanserModelica_HanserModelica.Thermal.Coupling.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.Coupling.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.Coupling.pipe >> ../files/HanserModelica_HanserModelica.Thermal.Coupling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Thermal_Coupling_fmu --startTime=0 --stopTime=400 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Thermal_Coupling.fmu > HanserModelica_HanserModelica.Thermal.Coupling.pipe 2>&1) Environment - environmentSimulation: