Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.SimpleExamples.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestThreeWayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7709/0.7709, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.681e-05, allocations: 4 kB / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1385, allocations: 31.98 MB / 236.8 MB, free: 5.543 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.SimpleExamples.TestThreeWayValve): time 1.464/1.602, allocations: 296.6 MB / 0.521 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04009/1.643, allocations: 37.89 MB / 0.558 GB, free: 5.469 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/1.643, allocations: 8 kB / 0.558 GB, free: 5.461 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004319/1.643, allocations: 155.1 kB / 0.5581 GB, free: 5.309 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004733/1.644, allocations: 274.1 kB / 0.5584 GB, free: 5.039 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01903/1.663, allocations: 7.594 MB / 0.5658 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/1.664, allocations: 0.9843 MB / 0.5668 GB, free: 12.46 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004383/1.664, allocations: 389.3 kB / 0.5671 GB, free: 12.07 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003551/1.665, allocations: 326.3 kB / 0.5675 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002915/1.665, allocations: 314.2 kB / 0.5678 GB, free: 11.45 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/1.665, allocations: 24 kB / 0.5678 GB, free: 11.42 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02599/1.691, allocations: 17.82 MB / 0.5852 GB, free: 9.578 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/1.691, allocations: 119.3 kB / 0.5853 GB, free: 9.461 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000515/1.692, allocations: 411.5 kB / 0.5857 GB, free: 9.051 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01767/1.71, allocations: 9.036 MB / 0.5945 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/1.71, allocations: 0 / 0.5945 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/1.71, allocations: 0 / 0.5945 GB, free: 15.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.612e-05/1.71, allocations: 0 / 0.5945 GB, free: 15.99 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004534/1.714, allocations: 1.836 MB / 0.5963 GB, free: 14.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/1.714, allocations: 8.031 kB / 0.5963 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/1.714, allocations: 127.5 kB / 0.5964 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/1.714, allocations: 90.88 kB / 0.5965 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004543/1.715, allocations: 460 kB / 0.597 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/1.715, allocations: 49.3 kB / 0.597 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/1.715, allocations: 64 kB / 0.5971 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/1.716, allocations: 0.8606 MB / 0.5979 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/1.716, allocations: 0 / 0.5979 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.292e-05/1.716, allocations: 28 kB / 0.5979 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.889e-05/1.716, allocations: 39.97 kB / 0.598 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008588/1.717, allocations: 0.5513 MB / 0.5985 GB, free: 11.73 MB / 494.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.05491/1.772, allocations: 29.78 MB / 0.6276 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006475/1.773, allocations: 380.1 kB / 0.628 GB, free: 10.49 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003938/1.773, allocations: 279 kB / 0.6282 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2988/2.072, allocations: 77.92 MB / 0.7043 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/2.072, allocations: 41.59 kB / 0.7044 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=91): time 2.865e-06/2.072, allocations: 1.625 kB / 0.7044 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=91): time 0.003302/2.075, allocations: 1.292 MB / 0.7056 GB, free: 215.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/2.075, allocations: 83.27 kB / 0.7057 GB, free: 215.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000651/2.076, allocations: 0.5064 MB / 0.7062 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/2.076, allocations: 30.45 kB / 0.7062 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/2.076, allocations: 341.4 kB / 0.7066 GB, free: 215.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/2.077, allocations: 295 kB / 0.7068 GB, free: 215.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/2.077, allocations: 73.81 kB / 0.7069 GB, free: 215.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001192/2.077, allocations: 382.9 kB / 0.7073 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003871/2.077, allocations: 220.2 kB / 0.7075 GB, free: 214.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/2.078, allocations: 366 kB / 0.7078 GB, free: 214.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/2.079, allocations: 0.642 MB / 0.7085 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/2.079, allocations: 1.094 kB / 0.7085 GB, free: 214.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001582/2.08, allocations: 0.907 MB / 0.7093 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/2.08, allocations: 6.219 kB / 0.7093 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/2.08, allocations: 4.344 kB / 0.7094 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002888/2.083, allocations: 0.9887 MB / 0.7103 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/2.083, allocations: 37.88 kB / 0.7104 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/2.084, allocations: 1.094 MB / 0.7114 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/2.085, allocations: 83.2 kB / 0.7115 GB, free: 213.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/2.085, allocations: 20.62 kB / 0.7115 GB, free: 213.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,threeWayValve.PerteDP1.C2.b,threeWayValve.PerteDP1.C1.a,threeWayValve.VolumeA1.Cs2.b,threeWayValve.VolumeA1.Cs1.b,threeWayValve.VolumeA1.Ce2.a,threeWayValve.VolumeA1.Ce1.a,threeWayValve.Valve2.C2.b,threeWayValve.Valve2.C1.a,threeWayValve.Valve1.C2.b,threeWayValve.Valve1.C1.a,PuitsP1.C.a,SourceP1.C.b,threeWayValve.VolumeA1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(7,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002482/2.085, allocations: 230.3 kB / 0.7117 GB, free: 213.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.133e-05/2.085, allocations: 60.41 kB / 0.7118 GB, free: 213.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/2.087, allocations: 2.153 MB / 0.7139 GB, free: 213.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001131/2.088, allocations: 0.8193 MB / 0.7147 GB, free: 213.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/2.088, allocations: 0 / 0.7147 GB, free: 213.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/2.088, allocations: 10.95 kB / 0.7147 GB, free: 213.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002503/2.091, allocations: 2.151 MB / 0.7168 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/2.091, allocations: 0 / 0.7168 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/2.091, allocations: 85.62 kB / 0.7169 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/2.093, allocations: 0.7342 MB / 0.7176 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/2.093, allocations: 14.45 kB / 0.7176 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008975/2.094, allocations: 1.027 MB / 0.7186 GB, free: 212.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/2.094, allocations: 0.8125 kB / 0.7186 GB, free: 212.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/2.095, allocations: 1.299 MB / 0.7199 GB, free: 211.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/2.096, allocations: 257.1 kB / 0.7201 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.524e-05/2.096, allocations: 13.7 kB / 0.7202 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/2.096, allocations: 29.38 kB / 0.7202 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.274e-05/2.096, allocations: 44.67 kB / 0.7202 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/2.096, allocations: 15.31 kB / 0.7202 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004284/2.097, allocations: 468.4 kB / 0.7207 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/2.097, allocations: 0 / 0.7207 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002776/2.099, allocations: 1.319 MB / 0.722 GB, free: 211.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (threeWayValve.VolumeA1.h) * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(6,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00609/2.105, allocations: 3.522 MB / 0.7254 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00135/2.107, allocations: 0.861 MB / 0.7263 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/2.107, allocations: 1.969 kB / 0.7263 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006951/2.107, allocations: 403.5 kB / 0.7266 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/2.109, allocations: 333.6 kB / 0.727 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008167/2.117, allocations: 7.196 MB / 0.734 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/2.118, allocations: 1.014 MB / 0.735 GB, free: 207.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002616/2.118, allocations: 72.41 kB / 0.735 GB, free: 207.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002647/2.118, allocations: 337 kB / 0.7354 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/2.118, allocations: 0 / 0.7354 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.888/5.006, allocations: 60.57 MB / 0.7945 GB, free: 154 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000255/5.006, allocations: 237.4 kB / 0.7947 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.004/9.011, allocations: 0 / 0.7947 GB, free: 153.8 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestThreeWayValve_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestThreeWayValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.pipe 2>&1)