Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve",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.8295/0.8296, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.779e-05, allocations: 7.938 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1811, allocations: 31.98 MB / 236.8 MB, free: 5.414 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.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve): time 1.592/1.773, allocations: 295.5 MB / 0.5199 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1939/1.967, allocations: 185.5 MB / 0.701 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004266/1.967, allocations: 7.938 kB / 0.701 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003488/1.968, allocations: 107.3 kB / 0.7011 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004004/1.968, allocations: 158.8 kB / 0.7013 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3443/2.313, allocations: 8.856 MB / 0.7099 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008921/2.313, allocations: 0.661 MB / 0.7106 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002952/2.314, allocations: 214.7 kB / 0.7108 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003444/2.314, allocations: 230.4 kB / 0.711 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/2.314, allocations: 219.7 kB / 0.7112 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.857e-05/2.314, allocations: 18 kB / 0.7112 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03019/2.345, allocations: 20.16 MB / 0.7309 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001754/2.345, allocations: 75.34 kB / 0.731 GB, free: 5.195 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004097/2.345, allocations: 280.8 kB / 0.7313 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02258/2.368, allocations: 9.956 MB / 0.741 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/2.368, allocations: 0 / 0.741 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.274e-06/2.368, allocations: 0 / 0.741 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.446e-06/2.368, allocations: 0 / 0.741 GB, free: 2.207 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005167/2.373, allocations: 1.869 MB / 0.7428 GB, free: 0.957 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/2.373, allocations: 14.42 kB / 0.7428 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.708e-05/2.373, allocations: 90.02 kB / 0.7429 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/2.373, allocations: 63.91 kB / 0.743 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002858/2.374, allocations: 331.2 kB / 0.7433 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/2.374, allocations: 54.52 kB / 0.7433 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/2.374, allocations: 45.66 kB / 0.7434 GB, free: 0.5664 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/2.374, allocations: 0.5435 MB / 0.7439 GB, free: 356 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/2.374, allocations: 0.8125 kB / 0.7439 GB, free: 356 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/2.374, allocations: 21.53 kB / 0.7439 GB, free: 356 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/2.374, allocations: 23.28 kB / 0.744 GB, free: 348 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004188/2.375, allocations: 347.1 kB / 0.7443 GB, free: 312 kB / 0.5762 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.03608/2.411, allocations: 19.5 MB / 0.7633 GB, free: 1.957 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006106/2.412, allocations: 332.5 kB / 0.7636 GB, free: 1.898 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/2.412, allocations: 207 kB / 0.7638 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.305/2.717, allocations: 151.8 MB / 0.912 GB, free: 488 kB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004877/2.717, allocations: 297 kB / 0.9123 GB, free: 244 kB / 0.7481 GB Notification: Performance of pre-optimization done (n=71): time 2.505e-06/2.717, allocations: 0 / 0.9123 GB, free: 244 kB / 0.7481 GB Notification: Performance of matching and sorting (n=71): time 0.003117/2.72, allocations: 1.117 MB / 0.9134 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/2.721, allocations: 172.9 kB / 0.9136 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/2.721, allocations: 359.2 kB / 0.9139 GB, free: 14.86 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/2.721, allocations: 29.33 kB / 0.9139 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/2.721, allocations: 231.7 kB / 0.9142 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/2.721, allocations: 222 kB / 0.9144 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/2.721, allocations: 63.98 kB / 0.9144 GB, free: 14.41 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000111/2.721, allocations: 353.3 kB / 0.9148 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/2.722, allocations: 147.7 kB / 0.9149 GB, free: 13.99 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/2.722, allocations: 248.5 kB / 0.9151 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/2.726, allocations: 1.227 MB / 0.9163 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/2.726, allocations: 0 / 0.9163 GB, free: 12.77 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0008835/2.727, allocations: 0.6554 MB / 0.917 GB, free: 12.32 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.524e-05/2.727, allocations: 34.02 kB / 0.917 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/2.727, allocations: 14.84 kB / 0.917 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002263/2.729, allocations: 0.7053 MB / 0.9177 GB, free: 11.62 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/2.729, allocations: 26.89 kB / 0.9177 GB, free: 11.6 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009105/2.73, allocations: 0.9249 MB / 0.9187 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/2.73, allocations: 70.62 kB / 0.9187 GB, free: 10.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/2.73, allocations: 12 kB / 0.9187 GB, free: 10.74 MB / 0.7637 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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 {(5,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002378/2.731, allocations: 206.4 kB / 0.9189 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.857e-05/2.731, allocations: 47.34 kB / 0.919 GB, free: 10.52 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/2.732, allocations: 1.139 MB / 0.9201 GB, free: 9.684 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008853/2.733, allocations: 0.6991 MB / 0.9208 GB, free: 9.203 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/2.733, allocations: 4 kB / 0.9208 GB, free: 9.199 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/2.733, allocations: 0 / 0.9208 GB, free: 9.199 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/2.735, allocations: 1.695 MB / 0.9224 GB, free: 7.918 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/2.735, allocations: 0 / 0.9224 GB, free: 7.918 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/2.735, allocations: 53.73 kB / 0.9225 GB, free: 7.871 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002017/2.737, allocations: 0.7148 MB / 0.9232 GB, free: 7.223 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/2.737, allocations: 15.61 kB / 0.9232 GB, free: 7.211 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008917/2.738, allocations: 0.9944 MB / 0.9242 GB, free: 6.387 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/2.738, allocations: 0 / 0.9242 GB, free: 6.387 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00092/2.739, allocations: 0.8202 MB / 0.925 GB, free: 5.77 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/2.739, allocations: 201.9 kB / 0.9252 GB, free: 5.578 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.857e-05/2.739, allocations: 11.31 kB / 0.9252 GB, free: 5.574 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/2.74, allocations: 19.36 kB / 0.9252 GB, free: 5.562 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/2.74, allocations: 36.06 kB / 0.9252 GB, free: 5.531 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.581e-05/2.74, allocations: 15.69 kB / 0.9252 GB, free: 5.52 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003034/2.74, allocations: 320.9 kB / 0.9255 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/2.74, allocations: 3.844 kB / 0.9255 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003869/2.744, allocations: 1.545 MB / 0.9271 GB, free: 3.836 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: 3 ($whenCondition1,pulse.T0,pulse.yL.signal) * Number of discrete states: 3 (pulse.yL.signal,pulse.T0,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008021/2.752, allocations: 3.584 MB / 0.9306 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001345/2.753, allocations: 0.6874 MB / 0.9312 GB, free: 236 kB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/2.753, allocations: 0.625 kB / 0.9312 GB, free: 236 kB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006402/2.754, allocations: 382.9 kB / 0.9316 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/2.755, allocations: 231.6 kB / 0.9318 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007906/2.763, allocations: 5.276 MB / 0.937 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/2.764, allocations: 0.8987 MB / 0.9378 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002793/2.764, allocations: 51.34 kB / 0.9379 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/2.764, allocations: 210.6 kB / 0.9381 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of SimCode: time 7.91e-07/2.764, allocations: 4 kB / 0.9381 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2618/3.026, allocations: 60.75 MB / 0.9974 GB, free: 431.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002743/3.026, allocations: 303.4 kB / 0.9977 GB, free: 431.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.922/7.949, allocations: 0 / 0.9977 GB, free: 431.1 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestSwitchValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.pipe 2>&1)