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-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.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.001027/0.001027, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.337/1.337, allocations: 222.9 MB / 239 MB, free: 4.734 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.001196/0.001196, allocations: 196.4 kB / 289.3 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.797 MB / 348.2 MB, free: 4.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 75.06 kB / 410.7 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07317/0.07461, allocations: 51.56 MB / 462.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.00361/0.07825, allocations: 2.463 MB / 464.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009273/0.07921, allocations: 0.5727 MB / 465.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.07933, allocations: 8 kB / 465.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.07948, allocations: 23.78 kB / 465.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.07962, allocations: 59.52 kB / 465.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.07981, allocations: 47.91 kB / 465.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.08006, allocations: 246.8 kB / 465.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/0.08023, allocations: 84.48 kB / 465.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.08034, allocations: 87.7 kB / 465.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.08048, allocations: 99.5 kB / 465.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.08052, allocations: 20 kB / 466 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.321e-05/0.08056, allocations: 16 kB / 466 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.771e-05/0.0806, allocations: 43.84 kB / 466 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.733e-05/0.0807, allocations: 111.5 kB / 466.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.08092, allocations: 231.1 kB / 466.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.08093, allocations: 3.938 kB / 466.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.08094, allocations: 0 / 466.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.08095, allocations: 0 / 466.3 MB, free: 10.53 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.0007152/0.08167, allocations: 0.4947 MB / 466.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.08173, allocations: 12.03 kB / 466.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.541e-05/0.0818, allocations: 54.73 kB / 466.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.56e-05/0.08186, allocations: 24.66 kB / 466.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.08213, allocations: 233.4 kB / 467.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.08216, allocations: 20.33 kB / 467.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.761e-05/0.0822, allocations: 16.38 kB / 467.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.08252, allocations: 195.4 kB / 467.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.08255, allocations: 0 / 467.4 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.08257, allocations: 8 kB / 467.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.08259, allocations: 7.938 kB / 467.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.08281, allocations: 115.9 kB / 467.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.08384, allocations: 0.744 MB / 468.3 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.08413, allocations: 134.7 kB / 468.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.482e-05/0.08423, allocations: 52.84 kB / 468.4 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.08426, allocations: 4 kB / 468.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.08448, allocations: 101.8 kB / 468.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.08449, allocations: 0 / 468.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006225/0.08511, allocations: 295.2 kB / 468.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.08517, allocations: 55.41 kB / 468.9 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.08533, allocations: 187 kB / 469.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.08535, allocations: 29.7 kB / 469.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.172e-05/0.08543, allocations: 132.3 kB / 469.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.08548, allocations: 51.27 kB / 469.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.08554, allocations: 37.7 kB / 469.3 MB, free: 7.297 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.08564, allocations: 326.8 kB / 469.6 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.923e-05/0.08572, allocations: 43.94 kB / 469.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.718e-05/0.08581, allocations: 75.3 kB / 469.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.08597, allocations: 110.5 kB / 469.9 MB, free: 6.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.08598, allocations: 8 kB / 469.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003079/0.08629, allocations: 186 kB / 470 MB, free: 6.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.08632, allocations: 8 kB / 470.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.08633, allocations: 0 / 470.1 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001777/0.08651, allocations: 32.84 kB / 470.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.08663, allocations: 28.11 kB / 470.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001206/0.08785, allocations: 1.469 MB / 471.6 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.08798, allocations: 15.84 kB / 471.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.088, allocations: 11.94 kB / 471.6 MB, free: 4.812 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,switch.control) * 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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.08814, allocations: 133.7 kB / 471.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.08817, allocations: 19.75 kB / 471.8 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.08822, allocations: 21.59 kB / 471.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.08823, allocations: 4 kB / 471.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.08824, allocations: 4 kB / 471.8 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.08825, allocations: 3.984 kB / 471.8 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.0885, allocations: 253.5 kB / 472 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.08851, allocations: 4 kB / 472 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.08862, allocations: 23.86 kB / 472.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.08874, allocations: 32.84 kB / 472.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.08876, allocations: 3.984 kB / 472.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000952/0.08972, allocations: 1.469 MB / 473.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.08973, allocations: 4.031 kB / 473.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/0.09009, allocations: 227.9 kB / 473.8 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.077e-05/0.09019, allocations: 104.9 kB / 473.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.09022, allocations: 15.88 kB / 473.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.09034, allocations: 12.11 kB / 473.9 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.0904, allocations: 15.98 kB / 473.9 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.477e-06/0.09041, allocations: 4 kB / 474 MB, free: 2.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.613e-05/0.09051, allocations: 133.2 kB / 474.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09052, allocations: 3.938 kB / 474.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.0908, allocations: 55.94 kB / 474.1 MB, free: 2.051 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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006003/0.0914, allocations: 0.7614 MB / 474.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003577/0.09177, allocations: 225 kB / 475.1 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.09179, allocations: 4 kB / 475.1 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001873/0.09198, allocations: 174.9 kB / 475.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.09227, allocations: 35.98 kB / 475.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.0945, allocations: 2.147 MB / 477.5 MB, free: 14.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.09475, allocations: 0.7359 MB / 478.2 MB, free: 13.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.966e-05/0.09483, allocations: 13.55 kB / 478.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.427e-05/0.09491, allocations: 55.42 kB / 478.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09491, allocations: 0 / 478.3 MB, free: 13.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.1127, allocations: 4.024 MB / 482.3 MB, free: 9.812 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.113, allocations: 194.8 kB / 482.5 MB, free: 9.562 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/1.839, allocations: 8.062 kB / 482.5 MB, free: 9.555 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/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)