Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.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.TestIdealCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealCheckValve",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.7398/0.7398, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.386e-05/1.388e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 31.99 MB / 236.8 MB, free: 5.406 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.TestIdealCheckValve): time 1.388/1.518, allocations: 301.1 MB / 0.5253 GB, free: 6.801 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4263/1.945, allocations: 196 MB / 0.7167 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009016/1.946, allocations: 29.38 kB / 0.7167 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0003293/1.946, allocations: 189.7 kB / 0.7169 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001314/1.947, allocations: 0.6517 MB / 0.7175 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02671/1.974, allocations: 11.51 MB / 0.7288 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002657/1.977, allocations: 2.876 MB / 0.7316 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/1.978, allocations: 1.269 MB / 0.7328 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001191/1.979, allocations: 0.9406 MB / 0.7337 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009748/1.98, allocations: 1.096 MB / 0.7348 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001891/1.98, allocations: 121 kB / 0.7349 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0351/2.015, allocations: 22.82 MB / 0.7572 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005765/2.016, allocations: 464.7 kB / 0.7577 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001412/2.017, allocations: 1.195 MB / 0.7588 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02651/2.044, allocations: 13.75 MB / 0.7723 GB, free: 9.984 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/2.044, allocations: 4.875 kB / 0.7723 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.445e-06/2.044, allocations: 4 kB / 0.7723 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.824e-05/2.044, allocations: 0 / 0.7723 GB, free: 9.977 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 650 * Number of variables: 650 Notification: Performance of Generate backend data structure: time 0.007771/2.052, allocations: 3.73 MB / 0.7759 GB, free: 7.602 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/2.052, allocations: 12.72 kB / 0.7759 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003092/2.052, allocations: 350.6 kB / 0.7763 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/2.053, allocations: 308.9 kB / 0.7766 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/2.054, allocations: 1.046 MB / 0.7776 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/2.054, allocations: 278 kB / 0.7778 GB, free: 6.641 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/2.054, allocations: 259 kB / 0.7781 GB, free: 6.633 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/2.058, allocations: 2.667 MB / 0.7807 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.733e-05/2.058, allocations: 13.81 kB / 0.7807 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001856/2.058, allocations: 110.4 kB / 0.7808 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.486e-05/2.058, allocations: 64 kB / 0.7809 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00327/2.061, allocations: 2.14 MB / 0.783 GB, free: 3.434 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.02319/2.085, allocations: 23.4 MB / 0.8058 GB, free: 10.11 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/2.087, allocations: 1.51 MB / 0.8073 GB, free: 8.531 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/2.088, allocations: 0.5414 MB / 0.8078 GB, free: 7.977 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6998/2.788, allocations: 295.2 MB / 1.096 GB, free: 329.9 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/2.789, allocations: 0.6769 MB / 1.097 GB, free: 329.4 MB / 0.795 GB Notification: Performance of pre-optimization done (n=123): time 4.549e-06/2.789, allocations: 0 / 1.097 GB, free: 329.4 MB / 0.795 GB Notification: Performance of matching and sorting (n=123): time 0.01741/2.807, allocations: 4.492 MB / 1.101 GB, free: 325.4 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/2.807, allocations: 259.5 kB / 1.101 GB, free: 325.1 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001571/2.808, allocations: 1.366 MB / 1.103 GB, free: 324.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001011/2.808, allocations: 48.95 kB / 1.103 GB, free: 324.1 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005984/2.809, allocations: 1.116 MB / 1.104 GB, free: 323.3 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003069/2.809, allocations: 431 kB / 1.104 GB, free: 323 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/2.81, allocations: 203.8 kB / 1.104 GB, free: 322.8 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.71e-05/2.81, allocations: 305.1 kB / 1.105 GB, free: 322.5 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008507/2.81, allocations: 490.3 kB / 1.105 GB, free: 322.2 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/2.812, allocations: 1.329 MB / 1.107 GB, free: 320.7 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005584/2.817, allocations: 2.698 MB / 1.109 GB, free: 318.2 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.651e-05/2.817, allocations: 12 kB / 1.109 GB, free: 318.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.004869/2.822, allocations: 2.555 MB / 1.112 GB, free: 316.2 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/2.822, allocations: 20.56 kB / 1.112 GB, free: 316.1 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/2.822, allocations: 31.94 kB / 1.112 GB, free: 316.1 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004502/2.827, allocations: 1.149 MB / 1.113 GB, free: 315.1 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007959/2.827, allocations: 322.7 kB / 1.113 GB, free: 314.8 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/2.829, allocations: 1.987 MB / 1.115 GB, free: 313.1 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/2.831, allocations: 254.6 kB / 1.115 GB, free: 312.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/2.831, allocations: 114.9 kB / 1.115 GB, free: 312.7 MB / 0.795 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: 126 * Number of states: 0 () * Number of discrete variables: 68 ($PRE.idealCheckValve3.touvert,$whenCondition7,$PRE.idealCheckValve3.tferme,$whenCondition6,$whenCondition5,$PRE.idealCheckValve1.touvert,$whenCondition4,$PRE.idealCheckValve1.tferme,$whenCondition3,$PRE.idealCheckValve2.touvert,$whenCondition2,$PRE.idealCheckValve2.tferme,$whenCondition1,sourceP1.C.ftype,$PRE.pulse.T0,puitsP1.fluid,perteDP2.fluid,perteDP3.fluid,idealCheckValve3.tferme,idealCheckValve3.touvert,idealCheckValve3.ouvert,$PRE.idealCheckValve3.ouvert,pulse.T0,volumeC.Cs.ftype,sourceP.C.ftype,volumeC.Ce1.ftype,volumeD.Cs2.ftype,volumeD.Cs1.ftype,volumeC.fluids[1],volumeD.Cs3.ftype,volumeD.fluids[1],puitsP.fluid,staticCentrifugalPump1.fluid,staticCentrifugalPump2.fluid,perteDP.fluid,perteDP1.fluid,idealCheckValve2.tferme,idealCheckValve2.touvert,idealCheckValve2.ouvert,$PRE.idealCheckValve2.ouvert,idealCheckValve1.tferme,idealCheckValve1.touvert,idealCheckValve1.ouvert,$PRE.idealCheckValve1.ouvert,volumeC.fluid1,volumeD.fluid1,sourceP.fluid1,sourceP1.fluid1,volumeC.Cs.diff_on_1,volumeD.Ce.diff_on_2,volumeC.Ce3.diff_on_2,staticCentrifugalPump2.C2.diff_on_2,volumeD.Cs2.diff_on_2,volumeC.Ce2.diff_on_2,staticCentrifugalPump1.C2.diff_on_2,volumeD.Cs1.diff_on_2,volumeC.Ce1.diff_on_2,volumeC.Ce1.diff_on_1,volumeD.Cs2.diff_on_1,staticCentrifugalPump2.C2.diff_on_1,idealCheckValve2.C2.diff_on_1,volumeD.Cs1.diff_on_1,staticCentrifugalPump1.C2.diff_on_1,idealCheckValve1.C2.diff_on_1,volumeD.Cs3.diff_on_1,volumeD.Cs3.diff_on_2,perteDP2.C1.diff_on_2,perteDP3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(3,10), (10,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0007209/2.832, allocations: 457.9 kB / 1.116 GB, free: 312.4 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002511/2.832, allocations: 169.9 kB / 1.116 GB, free: 312.3 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005436/2.837, allocations: 2.104 MB / 1.118 GB, free: 310.7 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/2.837, allocations: 16 kB / 1.118 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/2.837, allocations: 2.719 kB / 1.118 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/2.837, allocations: 11.92 kB / 1.118 GB, free: 310.6 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005487/2.843, allocations: 3.52 MB / 1.122 GB, free: 307.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/2.843, allocations: 0 / 1.122 GB, free: 307.6 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/2.843, allocations: 115.8 kB / 1.122 GB, free: 307.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003534/2.847, allocations: 0.9056 MB / 1.123 GB, free: 306.6 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.197e-05/2.847, allocations: 31.98 kB / 1.123 GB, free: 306.6 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/2.849, allocations: 1.861 MB / 1.124 GB, free: 304.6 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/2.849, allocations: 0 / 1.124 GB, free: 304.6 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004235/2.853, allocations: 2.288 MB / 1.127 GB, free: 302.3 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005095/2.853, allocations: 386.5 kB / 1.127 GB, free: 301.9 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002278/2.854, allocations: 27.98 kB / 1.127 GB, free: 301.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006845/2.854, allocations: 43.97 kB / 1.127 GB, free: 301.9 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/2.854, allocations: 92.47 kB / 1.127 GB, free: 301.8 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.77e-05/2.854, allocations: 44.77 kB / 1.127 GB, free: 301.7 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0008339/2.855, allocations: 0.8565 MB / 1.128 GB, free: 300.9 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/2.855, allocations: 0 / 1.128 GB, free: 300.9 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005251/2.861, allocations: 2.308 MB / 1.13 GB, free: 298.8 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (volumeD.h,volumeC.h) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCheckValve1.ouvert,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve2.ouvert,idealCheckValve2.touvert,idealCheckValve2.tferme,$whenCondition7,$whenCondition6,$whenCondition5,pulse.T0,idealCheckValve3.ouvert,idealCheckValve3.touvert,idealCheckValve3.tferme) * Number of discrete states: 6 (idealCheckValve3.touvert,idealCheckValve3.tferme,idealCheckValve1.touvert,idealCheckValve1.tferme,idealCheckValve2.touvert,idealCheckValve2.tferme) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(8,33), (3,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01167/2.872, allocations: 5.532 MB / 1.136 GB, free: 293.7 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002408/2.875, allocations: 1.453 MB / 1.137 GB, free: 292.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/2.875, allocations: 0 / 1.137 GB, free: 292.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/2.876, allocations: 0.6326 MB / 1.138 GB, free: 291.6 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/2.877, allocations: 322.2 kB / 1.138 GB, free: 291.3 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/2.899, allocations: 16.55 MB / 1.154 GB, free: 273.3 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/2.9, allocations: 1.426 MB / 1.156 GB, free: 271.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0009107/2.901, allocations: 270.9 kB / 1.156 GB, free: 271.6 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006928/2.901, allocations: 0.8078 MB / 1.157 GB, free: 270.8 MB / 0.795 GB Notification: Performance of SimCode: time 9.71e-07/2.901, allocations: 4 kB / 1.157 GB, free: 270.8 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.261/8.163, allocations: 84.46 MB / 1.239 GB, free: 187.5 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001708/8.163, allocations: 296.5 kB / 1.239 GB, free: 187.1 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.239/13.4, allocations: 7.359 kB / 1.239 GB, free: 187.1 MB / 0.795 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealCheckValve_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestIdealCheckValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestIdealCheckValve.pipe 2>&1)