Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7992/0.7992, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.214e-05/2.216e-05, allocations: 7.984 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1376, allocations: 31.99 MB / 236.8 MB, free: 5.418 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS): time 1.512/1.65, allocations: 295.7 MB / 0.52 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.18/1.83, allocations: 187.3 MB / 0.703 GB, free: 376 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004325/1.83, allocations: 15.88 kB / 0.703 GB, free: 360 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001655/1.83, allocations: 55.55 kB / 0.7031 GB, free: 304 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.2604/2.091, allocations: 190.8 kB / 0.7032 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02352/2.114, allocations: 9.099 MB / 0.7121 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008322/2.115, allocations: 0.7482 MB / 0.7129 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/2.115, allocations: 333.5 kB / 0.7132 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/2.116, allocations: 246.7 kB / 0.7134 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/2.116, allocations: 279.7 kB / 0.7137 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/2.116, allocations: 31.84 kB / 0.7137 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03071/2.147, allocations: 20.36 MB / 0.7336 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001936/2.147, allocations: 106.9 kB / 0.7337 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003915/2.147, allocations: 341.1 kB / 0.734 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01994/2.167, allocations: 10.37 MB / 0.7441 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/2.167, allocations: 2.75 kB / 0.7442 GB, free: 0 / 0.5762 GB Notification: Performance of FrontEnd: time 2.234e-06/2.167, allocations: 64 / 0.7442 GB, free: 0 / 0.5762 GB Notification: Performance of Transformations before backend: time 9.087e-06/2.167, allocations: 0 / 0.7442 GB, free: 0 / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.004422/2.172, allocations: 1.967 MB / 0.7461 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/2.172, allocations: 8.531 kB / 0.7461 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.423e-05/2.172, allocations: 108.1 kB / 0.7462 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.858e-05/2.172, allocations: 90.33 kB / 0.7463 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/2.172, allocations: 422.6 kB / 0.7467 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/2.172, allocations: 51.59 kB / 0.7467 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/2.173, allocations: 66 kB / 0.7468 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008494/2.173, allocations: 0.6897 MB / 0.7475 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/2.173, allocations: 2.906 kB / 0.7475 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.314e-05/2.173, allocations: 33.19 kB / 0.7475 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/2.173, allocations: 21.67 kB / 0.7475 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006669/2.174, allocations: 499.5 kB / 0.748 GB, free: 13.99 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0143/2.188, allocations: 11.89 MB / 0.7596 GB, free: 3.996 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/2.189, allocations: 185 kB / 0.7598 GB, free: 3.957 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/2.189, allocations: 82.98 kB / 0.7599 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3009/2.49, allocations: 151.5 MB / 0.9078 GB, free: 5.766 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/2.49, allocations: 34.31 kB / 0.9078 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=19): time 2.335e-06/2.49, allocations: 6.906 kB / 0.9079 GB, free: 5.723 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.002966/2.493, allocations: 0.7657 MB / 0.9086 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/2.493, allocations: 55.41 kB / 0.9087 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/2.494, allocations: 477 kB / 0.9091 GB, free: 4.598 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/2.494, allocations: 33.7 kB / 0.9091 GB, free: 4.559 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/2.494, allocations: 358 kB / 0.9095 GB, free: 4.285 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.79e-05/2.494, allocations: 75.75 kB / 0.9096 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.045e-05/2.494, allocations: 48.44 kB / 0.9096 GB, free: 4.184 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001339/2.494, allocations: 353.2 kB / 0.9099 GB, free: 3.848 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/2.494, allocations: 90.33 kB / 0.91 GB, free: 3.785 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/2.494, allocations: 261.8 kB / 0.9103 GB, free: 3.5 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004342/2.495, allocations: 385.1 kB / 0.9106 GB, free: 3.156 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/2.495, allocations: 0 / 0.9106 GB, free: 3.156 MB / 0.7481 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008063/2.496, allocations: 495 kB / 0.9111 GB, free: 2.812 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/2.496, allocations: 8 kB / 0.9111 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/2.496, allocations: 4 kB / 0.9111 GB, free: 2.801 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003311/2.499, allocations: 0.5632 MB / 0.9117 GB, free: 2.277 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/2.499, allocations: 65.59 kB / 0.9117 GB, free: 2.223 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009675/2.5, allocations: 0.8015 MB / 0.9125 GB, free: 1.492 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/2.501, allocations: 53.94 kB / 0.9126 GB, free: 1.445 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.404e-05/2.501, allocations: 23.12 kB / 0.9126 GB, free: 1.426 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 8 (sourceP3.C.ftype,sourceP2.C.ftype,plateHeatExchanger.fluid_c,plateHeatExchanger.fluid_f,puitsP2.fluid,puitsP3.fluid,sourceP3.fluid1,sourceP2.fluid1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002341/2.501, allocations: 183.8 kB / 0.9128 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/2.501, allocations: 52 kB / 0.9128 GB, free: 1.227 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/2.502, allocations: 436.3 kB / 0.9132 GB, free: 0.8984 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/2.502, allocations: 4 kB / 0.9132 GB, free: 0.8945 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/2.502, allocations: 2.906 kB / 0.9132 GB, free: 0.8945 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/2.502, allocations: 0 / 0.9132 GB, free: 0.8945 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005788/2.503, allocations: 484.4 kB / 0.9137 GB, free: 492 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/2.503, allocations: 0 / 0.9137 GB, free: 492 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/2.503, allocations: 0 / 0.9137 GB, free: 492 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002489/2.505, allocations: 454 kB / 0.9141 GB, free: 80 kB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/2.505, allocations: 2.5 kB / 0.9141 GB, free: 80 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008612/2.506, allocations: 0.8141 MB / 0.9149 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/2.506, allocations: 3.938 kB / 0.9149 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007727/2.507, allocations: 378 kB / 0.9153 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/2.507, allocations: 156.2 kB / 0.9154 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.167e-05/2.507, allocations: 5.656 kB / 0.9155 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/2.507, allocations: 2.062 kB / 0.9155 GB, free: 14.88 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/2.507, allocations: 13.55 kB / 0.9155 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/2.507, allocations: 5.812 kB / 0.9155 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003472/2.508, allocations: 338.7 kB / 0.9158 GB, free: 14.6 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/2.508, allocations: 4 kB / 0.9158 GB, free: 14.6 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004064/2.512, allocations: 1.552 MB / 0.9173 GB, free: 13.15 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (1): * Single equations (assignments): 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00808/2.52, allocations: 3.076 MB / 0.9203 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007319/2.521, allocations: 300.2 kB / 0.9206 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/2.521, allocations: 0 / 0.9206 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003117/2.521, allocations: 126.9 kB / 0.9207 GB, free: 10.15 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006258/2.522, allocations: 120.7 kB / 0.9208 GB, free: 10.06 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006925/2.528, allocations: 4.855 MB / 0.9256 GB, free: 5.613 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/2.529, allocations: 0.8542 MB / 0.9264 GB, free: 4.73 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002127/2.529, allocations: 68.31 kB / 0.9265 GB, free: 4.664 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/2.529, allocations: 199.5 kB / 0.9267 GB, free: 4.609 MB / 0.7637 GB Notification: Performance of SimCode: time 2.41e-07/2.529, allocations: 0 / 0.9267 GB, free: 4.609 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.251/2.78, allocations: 55.88 MB / 0.9812 GB, free: 458.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/2.78, allocations: 290.4 kB / 0.9815 GB, free: 457.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.121/6.901, allocations: 0 / 0.9815 GB, free: 457.9 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestStaticExchangerKS.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStaticExchangerKS.pipe 2>&1)