Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss",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.8209/0.8209, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.288e-05/1.289e-05, allocations: 0 / 204.9 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1842, allocations: 31.99 MB / 236.9 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.TestPipePressureLoss): time 1.795/1.979, allocations: 294.5 MB / 0.5189 GB, free: 13.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04594/2.025, allocations: 37 MB / 0.555 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/2.025, allocations: 4 kB / 0.555 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/2.026, allocations: 75.62 kB / 0.5551 GB, free: 8.258 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/2.026, allocations: 83.3 kB / 0.5552 GB, free: 8.176 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02308/2.049, allocations: 7.316 MB / 0.5623 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006153/2.049, allocations: 322.4 kB / 0.5626 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/2.05, allocations: 98.44 kB / 0.5627 GB, free: 452 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/2.05, allocations: 111.4 kB / 0.5628 GB, free: 340 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/2.05, allocations: 95.45 kB / 0.5629 GB, free: 244 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/2.05, allocations: 8 kB / 0.5629 GB, free: 236 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03526/2.085, allocations: 17.81 MB / 0.5803 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.719e-05/2.086, allocations: 31.78 kB / 0.5803 GB, free: 14.36 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002163/2.086, allocations: 149 kB / 0.5805 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02432/2.11, allocations: 8.347 MB / 0.5886 GB, free: 5.844 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/2.11, allocations: 0 / 0.5886 GB, free: 5.844 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.415e-06/2.11, allocations: 4 kB / 0.5886 GB, free: 5.84 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/2.11, allocations: 0 / 0.5886 GB, free: 5.84 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.005106/2.115, allocations: 1.384 MB / 0.59 GB, free: 4.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/2.115, allocations: 12.03 kB / 0.59 GB, free: 4.395 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.123e-05/2.115, allocations: 66.47 kB / 0.5901 GB, free: 4.32 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.512e-05/2.115, allocations: 27.62 kB / 0.5901 GB, free: 4.293 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/2.116, allocations: 243.3 kB / 0.5903 GB, free: 4.016 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/2.116, allocations: 12.44 kB / 0.5903 GB, free: 4 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/2.116, allocations: 20 kB / 0.5904 GB, free: 3.98 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/2.116, allocations: 302 kB / 0.5906 GB, free: 3.664 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/2.116, allocations: 0 / 0.5906 GB, free: 3.664 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/2.116, allocations: 12 kB / 0.5907 GB, free: 3.652 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/2.116, allocations: 8 kB / 0.5907 GB, free: 3.645 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/2.117, allocations: 177 kB / 0.5908 GB, free: 3.473 MB / 478.1 MB 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.03918/2.156, allocations: 18.14 MB / 0.6085 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/2.156, allocations: 126.7 kB / 0.6087 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/2.156, allocations: 88.84 kB / 0.6088 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1606/2.317, allocations: 77.94 MB / 0.6849 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/2.317, allocations: 30.56 kB / 0.6849 GB, free: 8.496 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 4.047e-06/2.317, allocations: 5.578 kB / 0.6849 GB, free: 8.492 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001057/2.318, allocations: 451.4 kB / 0.6853 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/2.318, allocations: 55.41 kB / 0.6854 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002321/2.318, allocations: 219.1 kB / 0.6856 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/2.318, allocations: 25.7 kB / 0.6856 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.926e-05/2.318, allocations: 148.5 kB / 0.6858 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.887e-05/2.319, allocations: 114.3 kB / 0.6859 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/2.319, allocations: 29.7 kB / 0.6859 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001132/2.319, allocations: 338.8 kB / 0.6862 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/2.319, allocations: 71.97 kB / 0.6863 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/2.319, allocations: 116.2 kB / 0.6864 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/2.319, allocations: 208.6 kB / 0.6866 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/2.319, allocations: 0 / 0.6866 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004334/2.32, allocations: 301.5 kB / 0.6869 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/2.32, allocations: 8 kB / 0.6869 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/2.32, allocations: 0 / 0.6869 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009695/2.321, allocations: 192.8 kB / 0.6871 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.656e-05/2.321, allocations: 8 kB / 0.6871 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005255/2.321, allocations: 0.6321 MB / 0.6877 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/2.321, allocations: 27.66 kB / 0.6877 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/2.321, allocations: 4 kB / 0.6877 GB, free: 5.445 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001339/2.322, allocations: 145.8 kB / 0.6879 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/2.322, allocations: 23.66 kB / 0.6879 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007292/2.322, allocations: 0.6105 MB / 0.6885 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003501/2.323, allocations: 222.3 kB / 0.6887 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/2.323, allocations: 3.938 kB / 0.6887 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/2.323, allocations: 0 / 0.6887 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009544/2.324, allocations: 0.735 MB / 0.6894 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/2.324, allocations: 0 / 0.6894 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.534e-05/2.324, allocations: 12 kB / 0.6894 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005242/2.324, allocations: 148.7 kB / 0.6896 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/2.324, allocations: 5.688 kB / 0.6896 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000459/2.325, allocations: 0.6586 MB / 0.6902 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/2.325, allocations: 0 / 0.6902 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004173/2.325, allocations: 341.5 kB / 0.6905 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/2.325, allocations: 136.7 kB / 0.6907 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/2.325, allocations: 7.984 kB / 0.6907 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/2.326, allocations: 4 kB / 0.6907 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/2.326, allocations: 12.05 kB / 0.6907 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-06/2.326, allocations: 4 kB / 0.6907 GB, free: 2.191 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000223/2.326, allocations: 234 kB / 0.6909 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/2.326, allocations: 0 / 0.6909 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003046/2.329, allocations: 1.187 MB / 0.6921 GB, free: 0.7773 MB / 0.5762 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 (11): * Single equations (assignments): 10 * 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 {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.208/2.537, allocations: 2.528 MB / 0.6946 GB, free: 228 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007059/2.538, allocations: 239.2 kB / 0.6948 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/2.538, allocations: 0 / 0.6948 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002048/2.538, allocations: 87.28 kB / 0.6949 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008646/2.539, allocations: 124.6 kB / 0.695 GB, free: 227.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005339/2.544, allocations: 3.137 MB / 0.698 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/2.544, allocations: 0.767 MB / 0.6988 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000169/2.545, allocations: 28.23 kB / 0.6988 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/2.545, allocations: 88.36 kB / 0.6989 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/2.545, allocations: 0 / 0.6989 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07521/2.62, allocations: 46.62 MB / 0.7444 GB, free: 200.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/2.62, allocations: 264.8 kB / 0.7447 GB, free: 200.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.986/6.606, allocations: 0 / 0.7447 GB, free: 200.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)