Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.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.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestThreeWayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestThreeWayValve",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.749/0.749, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.623e-05, allocations: 4 kB / 204.9 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 31.98 MB / 236.8 MB, free: 5.379 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.TestThreeWayValve): time 1.417/1.546, allocations: 297.5 MB / 0.5219 GB, free: 10.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3926/1.938, allocations: 189.2 MB / 0.7067 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005247/1.939, allocations: 24.75 kB / 0.7067 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002665/1.939, allocations: 126 kB / 0.7068 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006905/1.94, allocations: 373.7 kB / 0.7072 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02117/1.961, allocations: 9.753 MB / 0.7167 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00125/1.962, allocations: 1.494 MB / 0.7181 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006338/1.963, allocations: 0.7696 MB / 0.7189 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/1.963, allocations: 471.5 kB / 0.7193 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003973/1.964, allocations: 0.5287 MB / 0.7199 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.403e-05/1.964, allocations: 54.53 kB / 0.7199 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02512/1.989, allocations: 20.25 MB / 0.7397 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002526/1.989, allocations: 229.8 kB / 0.7399 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006659/1.99, allocations: 0.6219 MB / 0.7405 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01623/2.006, allocations: 11.13 MB / 0.7514 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/2.006, allocations: 0 / 0.7514 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.864e-06/2.006, allocations: 0 / 0.7514 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.969e-05/2.006, allocations: 0 / 0.7514 GB, free: 14.18 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: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.006731/2.013, allocations: 2.443 MB / 0.7538 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/2.013, allocations: 8.625 kB / 0.7538 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002546/2.013, allocations: 187.8 kB / 0.754 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/2.014, allocations: 158.5 kB / 0.7541 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/2.015, allocations: 0.7177 MB / 0.7548 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.7e-05/2.015, allocations: 105.7 kB / 0.7549 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001794/2.015, allocations: 126 kB / 0.755 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002723/2.018, allocations: 1.324 MB / 0.7563 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/2.018, allocations: 10.69 kB / 0.7563 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/2.018, allocations: 52.12 kB / 0.7564 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/2.018, allocations: 32.22 kB / 0.7564 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002511/2.021, allocations: 1.053 MB / 0.7574 GB, free: 11.5 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.03134/2.052, allocations: 19.53 MB / 0.7765 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009509/2.053, allocations: 388.6 kB / 0.7769 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004487/2.053, allocations: 186.3 kB / 0.7771 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3395/2.393, allocations: 182 MB / 0.9548 GB, free: 7.504 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/2.393, allocations: 38.17 kB / 0.9548 GB, free: 7.461 MB / 0.795 GB Notification: Performance of pre-optimization done (n=35): time 1.783e-06/2.393, allocations: 0 / 0.9548 GB, free: 7.461 MB / 0.795 GB Notification: Performance of matching and sorting (n=35): time 0.004038/2.397, allocations: 1.264 MB / 0.9561 GB, free: 6.383 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/2.397, allocations: 55.41 kB / 0.9561 GB, free: 6.316 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009434/2.398, allocations: 0.845 MB / 0.957 GB, free: 5.668 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/2.398, allocations: 29.58 kB / 0.957 GB, free: 5.637 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000338/2.398, allocations: 0.6567 MB / 0.9576 GB, free: 5.125 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 8.026e-05/2.398, allocations: 131.5 kB / 0.9577 GB, free: 5.02 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.38e-05/2.399, allocations: 94.16 kB / 0.9578 GB, free: 4.953 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001291/2.399, allocations: 387.4 kB / 0.9582 GB, free: 4.59 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/2.399, allocations: 225.9 kB / 0.9584 GB, free: 4.367 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/2.4, allocations: 0.5862 MB / 0.959 GB, free: 3.617 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009836/2.401, allocations: 0.8259 MB / 0.9598 GB, free: 2.676 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/2.401, allocations: 4 kB / 0.9598 GB, free: 2.672 MB / 0.795 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001542/2.402, allocations: 1.01 MB / 0.9608 GB, free: 1.723 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/2.402, allocations: 8 kB / 0.9608 GB, free: 1.715 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/2.402, allocations: 12 kB / 0.9608 GB, free: 1.703 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002769/2.405, allocations: 0.6465 MB / 0.9614 GB, free: 1.062 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/2.405, allocations: 135.6 kB / 0.9616 GB, free: 0.9414 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/2.407, allocations: 0.9619 MB / 0.9625 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/2.407, allocations: 118.8 kB / 0.9626 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-05/2.407, allocations: 47.98 kB / 0.9627 GB, free: 15.8 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 24 (threeWayValve.VolumeA1.Cs2.ftype,SourceP1.C.ftype,threeWayValve.VolumeA1.Cs1.ftype,threeWayValve.VolumeA1.Ce2.ftype,threeWayValve.VolumeA1.Ce2.diff_on_1,threeWayValve.VolumeA1.fluids[1],threeWayValve.VolumeA1.Cs2.diff_on_2,threeWayValve.VolumeA1.Cs1.diff_on_2,threeWayValve.PerteDP1.C2.diff_on_1,PuitsP1.fluid,threeWayValve.Valve1.fluid,threeWayValve.Valve2.fluid,threeWayValve.PerteDP1.fluid,PuitsP2.fluid,threeWayValve.VolumeA1.fluid1,threeWayValve.fluid1,SourceP1.fluid1,threeWayValve.VolumeA1.Ce1.diff_on_2,SourceP1.C.diff_on_2,threeWayValve.VolumeA1.Cs2.diff_on_1,threeWayValve.C3.diff_on_1,threeWayValve.VolumeA1.Cs1.diff_on_1,threeWayValve.C2.diff_on_1,threeWayValve.VolumeA1.Ce2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0003567/2.408, allocations: 312.2 kB / 0.963 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.75e-05/2.408, allocations: 86.91 kB / 0.9631 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/2.409, allocations: 0.6952 MB / 0.9637 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.309e-06/2.409, allocations: 8 kB / 0.9637 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/2.409, allocations: 0 / 0.9637 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/2.409, allocations: 3.984 kB / 0.9637 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008674/2.41, allocations: 0.8355 MB / 0.9646 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/2.41, allocations: 6.906 kB / 0.9646 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/2.41, allocations: 23.98 kB / 0.9646 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001828/2.412, allocations: 494.2 kB / 0.9651 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/2.412, allocations: 8 kB / 0.9651 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/2.413, allocations: 0.9611 MB / 0.966 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/2.413, allocations: 3.844 kB / 0.966 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/2.414, allocations: 0.7222 MB / 0.9667 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/2.414, allocations: 215.9 kB / 0.9669 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.212e-05/2.414, allocations: 12 kB / 0.9669 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/2.415, allocations: 19.98 kB / 0.9669 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/2.415, allocations: 31.64 kB / 0.967 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/2.415, allocations: 18.91 kB / 0.967 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000581/2.415, allocations: 0.5341 MB / 0.9675 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/2.415, allocations: 1.859 kB / 0.9675 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003466/2.419, allocations: 1.65 MB / 0.9691 GB, free: 9.098 MB / 0.8106 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 (10): * Single equations (assignments): 9 * 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,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005955/2.425, allocations: 3.35 MB / 0.9724 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001213/2.426, allocations: 0.6162 MB / 0.973 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/2.426, allocations: 4 kB / 0.973 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005528/2.427, allocations: 239.9 kB / 0.9732 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/2.428, allocations: 193 kB / 0.9734 GB, free: 5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1531/2.581, allocations: 8.265 MB / 0.9815 GB, free: 456.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/2.581, allocations: 1.042 MB / 0.9825 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004437/2.582, allocations: 118.5 kB / 0.9826 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003317/2.582, allocations: 385.4 kB / 0.983 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of SimCode: time 6.51e-07/2.582, allocations: 1.719 kB / 0.983 GB, free: 455.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.413/5.995, allocations: 62.26 MB / 1.044 GB, free: 421.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/5.995, allocations: 288 kB / 1.044 GB, free: 421.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.162/10.16, allocations: 4 kB / 1.044 GB, free: 421.2 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestThreeWayValve_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestThreeWayValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestThreeWayValve.pipe 2>&1)