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.00111/0.00111, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 239.3 MB, free: 4.617 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.001564/0.001564, allocations: 191.8 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03457/0.03457, allocations: 8.802 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 80.48 kB / 411.2 MB, free: 42.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09044/0.09201, allocations: 51.57 MB / 462.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.Coupling): time 0.003565/0.0956, allocations: 2.416 MB / 465.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.09667, allocations: 0.5727 MB / 465.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.0968, allocations: 7.938 kB / 465.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000104/0.09694, allocations: 35.64 kB / 465.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.09707, allocations: 75.33 kB / 465.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.09722, allocations: 51.88 kB / 465.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.09749, allocations: 242.8 kB / 466.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.09765, allocations: 80.53 kB / 466.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.369e-05/0.09775, allocations: 91.66 kB / 466.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.09789, allocations: 95.55 kB / 466.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.694e-05/0.09794, allocations: 20 kB / 466.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.405e-05/0.09798, allocations: 16 kB / 466.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.09802, allocations: 51.83 kB / 466.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.09813, allocations: 111.4 kB / 466.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.09837, allocations: 227.1 kB / 466.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.09838, allocations: 0 / 466.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09839, allocations: 0 / 466.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.0984, allocations: 0 / 466.8 MB, free: 10.17 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.0008144/0.09922, allocations: 0.5051 MB / 467.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.09926, allocations: 16.03 kB / 467.3 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.895e-05/0.09931, allocations: 50.73 kB / 467.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.417e-05/0.09936, allocations: 24.66 kB / 467.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.0996, allocations: 229.4 kB / 467.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.09963, allocations: 16.33 kB / 467.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.22e-05/0.09966, allocations: 20.38 kB / 467.7 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.09996, allocations: 187.3 kB / 467.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.09998, allocations: 0 / 467.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.1, allocations: 16 kB / 467.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.583e-06/0.1, allocations: 8 kB / 467.9 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002096/0.1002, allocations: 115.9 kB / 468 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.1013, allocations: 0.744 MB / 468.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.1016, allocations: 138.7 kB / 468.9 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.262e-05/0.1017, allocations: 56.84 kB / 468.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.796e-06/0.1017, allocations: 0 / 468.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002346/0.1019, allocations: 87.38 kB / 469 MB, free: 7.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.102, allocations: 4 kB / 469 MB, free: 7.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006776/0.1026, allocations: 297.5 kB / 469.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.1027, allocations: 59.34 kB / 469.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1029, allocations: 187 kB / 469.6 MB, free: 7.195 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1029, allocations: 25.7 kB / 469.6 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.103, allocations: 136.3 kB / 469.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.1031, allocations: 55.25 kB / 469.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.503e-05/0.1032, allocations: 37.64 kB / 469.8 MB, free: 6.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1033, allocations: 330.8 kB / 470.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.107e-05/0.1034, allocations: 35.94 kB / 470.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.436e-05/0.1035, allocations: 76.27 kB / 470.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.1037, allocations: 108.2 kB / 470.3 MB, free: 6.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.1037, allocations: 4 kB / 470.3 MB, free: 6.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003352/0.104, allocations: 185 kB / 470.5 MB, free: 6.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1041, allocations: 8 kB / 470.5 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.1041, allocations: 3.984 kB / 470.5 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.1043, allocations: 36.97 kB / 470.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.1044, allocations: 31.92 kB / 470.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.1058, allocations: 1.461 MB / 472.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.106, allocations: 15.84 kB / 472.1 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.106, allocations: 4 kB / 472.1 MB, free: 4.457 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.0001597/0.1062, allocations: 143 kB / 472.2 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/0.1063, allocations: 27.8 kB / 472.2 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.975e-05/0.1063, allocations: 21.52 kB / 472.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.1063, allocations: 0 / 472.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1063, allocations: 0 / 472.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1063, allocations: 0 / 472.3 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.1067, allocations: 257.5 kB / 472.5 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.1067, allocations: 4 kB / 472.5 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.1069, allocations: 27.86 kB / 472.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001493/0.107, allocations: 32.84 kB / 472.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.107, allocations: 8 kB / 472.6 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001495/0.1085, allocations: 1.465 MB / 474.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1086, allocations: 0 / 474.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005429/0.1091, allocations: 229.7 kB / 474.3 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1093, allocations: 104.9 kB / 474.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.1093, allocations: 3.938 kB / 474.4 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.1095, allocations: 20.11 kB / 474.4 MB, free: 1.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.843e-05/0.1095, allocations: 7.984 kB / 474.4 MB, free: 1.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.1096, allocations: 11.98 kB / 474.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.1097, allocations: 133.2 kB / 474.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1098, allocations: 0 / 474.6 MB, free: 1.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000445/0.1102, allocations: 51.94 kB / 474.6 MB, free: 1.695 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.0009937/0.1112, allocations: 0.7795 MB / 475.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004921/0.1117, allocations: 226.5 kB / 475.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.1117, allocations: 0 / 475.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.112, allocations: 178.9 kB / 475.8 MB, free: 476 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.1124, allocations: 31.97 kB / 475.8 MB, free: 444 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003276/0.1157, allocations: 2.074 MB / 477.9 MB, free: 14.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.1161, allocations: 0.732 MB / 478.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.801e-05/0.1162, allocations: 17.53 kB / 478.6 MB, free: 13.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.1163, allocations: 55.41 kB / 478.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1163, allocations: 0 / 478.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03015/0.1464, allocations: 4.138 MB / 482.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.214/9.36, allocations: 3.625 kB / 482.8 MB, free: 9.352 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)