Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001831/0.00184, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002866/0.002866, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.214/2.214, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.9884/0.9884, allocations: 132.2 MB / 423.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005848/0.0005849, allocations: 12 kB / 0.5033 GB, free: 4.211 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8182/0.8188, allocations: 81.57 MB / 0.583 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.0888/0.9077, allocations: 40.23 MB / 0.6223 GB, free: 6.402 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03173/0.9395, allocations: 11.62 MB / 0.6336 GB, free: 12.68 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003507/0.943, allocations: 51.69 kB / 0.6337 GB, free: 12.62 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003409/0.9465, allocations: 0.7502 MB / 0.6344 GB, free: 11.87 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Fluid/Actuators/Valves/Simplified/Thermostatic3WayValve.mo:34:3-38:63:writable] Warning: Conditional component ‘vol‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.008147/0.9546, allocations: 2.069 MB / 0.6364 GB, free: 9.801 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006282/0.9609, allocations: 1.812 MB / 0.6382 GB, free: 8.02 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006708/0.9677, allocations: 2.393 MB / 0.6405 GB, free: 5.625 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002468/0.9702, allocations: 1.092 MB / 0.6416 GB, free: 4.504 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003193/0.9734, allocations: 1.113 MB / 0.6427 GB, free: 3.387 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.9752, allocations: 0.7583 MB / 0.6434 GB, free: 2.625 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.9754, allocations: 63.94 kB / 0.6435 GB, free: 2.562 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003645/0.9791, allocations: 1.104 MB / 0.6446 GB, free: 1.457 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004642/0.9795, allocations: 326.8 kB / 0.6449 GB, free: 1.137 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.9801, allocations: 340.8 kB / 0.6452 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.9834, allocations: 2.116 MB / 0.6473 GB, free: 14.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.9835, allocations: 0 / 0.6473 GB, free: 14.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.9835, allocations: 4 kB / 0.6473 GB, free: 14.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.9835, allocations: 4 kB / 0.6473 GB, free: 14.67 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003458/0.987, allocations: 1.733 MB / 0.649 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.987, allocations: 16.03 kB / 0.649 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002061/0.9872, allocations: 139.7 kB / 0.6491 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0105/0.9977, allocations: 1.625 MB / 0.6507 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002971/1.001, allocations: 1.335 MB / 0.652 GB, free: 9.703 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/1.001, allocations: 146.1 kB / 0.6521 GB, free: 9.562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/1.001, allocations: 99.98 kB / 0.6522 GB, free: 9.465 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005811/1.007, allocations: 1.729 MB / 0.6539 GB, free: 7.695 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/1.007, allocations: 0 / 0.6539 GB, free: 7.695 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/1.007, allocations: 36 kB / 0.654 GB, free: 7.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/1.007, allocations: 24 kB / 0.654 GB, free: 7.637 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009233/1.017, allocations: 2.076 MB / 0.656 GB, free: 5.559 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.01688/1.034, allocations: 6.766 MB / 0.6626 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008201/1.042, allocations: 1.683 MB / 0.6643 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005382/1.047, allocations: 3.585 MB / 0.6678 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.047, allocations: 38.94 kB / 0.6678 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004993/1.048, allocations: 83 kB / 0.6679 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.865e-06/1.048, allocations: 0 / 0.6679 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.01755/1.065, allocations: 2.472 MB / 0.6703 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/1.065, allocations: 55.41 kB / 0.6703 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003437/1.069, allocations: 1.397 MB / 0.6717 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000238/1.069, allocations: 33.7 kB / 0.6717 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008559/1.07, allocations: 0.6688 MB / 0.6724 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/1.07, allocations: 161.7 kB / 0.6725 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.482e-05/1.07, allocations: 15.98 kB / 0.6726 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001675/1.071, allocations: 334 kB / 0.6729 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007284/1.078, allocations: 0.8722 MB / 0.6737 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008579/1.087, allocations: 1.152 MB / 0.6749 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009492/1.096, allocations: 0.8646 MB / 0.6757 GB, free: 396 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/1.096, allocations: 0 / 0.6757 GB, free: 396 kB / 0.4981 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.01771/1.114, allocations: 2.098 MB / 0.6778 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.001862/1.116, allocations: 3.03 MB / 0.6807 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/1.116, allocations: 8.094 kB / 0.6807 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.846e-05/1.116, allocations: 19.89 kB / 0.6807 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/1.121, allocations: 459.4 kB / 0.6812 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.583e-05/1.121, allocations: 11.94 kB / 0.6812 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005871/1.127, allocations: 372.2 kB / 0.6815 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/1.127, allocations: 51.97 kB / 0.6816 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/1.127, allocations: 6.031 kB / 0.6816 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01497/1.142, allocations: 1.887 MB / 0.6834 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.57e-05/1.142, allocations: 8 kB / 0.6834 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/1.142, allocations: 12 kB / 0.6835 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003203/1.145, allocations: 435.7 kB / 0.6839 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.979e-05/1.145, allocations: 19.94 kB / 0.6839 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003672/1.149, allocations: 348.1 kB / 0.6842 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/1.149, allocations: 47.97 kB / 0.6843 GB, free: 7.438 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 initialization (90): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000934/1.15, allocations: 420.8 kB / 0.6847 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004787/1.151, allocations: 142.3 kB / 0.6848 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009232/1.16, allocations: 2.131 MB / 0.6869 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-05/1.16, allocations: 8 kB / 0.6869 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/1.16, allocations: 0 / 0.6869 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008158/1.168, allocations: 1.869 MB / 0.6887 GB, free: 2.824 MB / 0.5137 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 postOpt removeSimpleEquations (simulation): time 0.01334/1.181, allocations: 3.494 MB / 0.6921 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.182, allocations: 0 / 0.6921 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/1.184, allocations: 371.5 kB / 0.6925 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.04e-05/1.184, allocations: 11.89 kB / 0.6925 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.017e-05/1.184, allocations: 19.97 kB / 0.6925 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.957e-06/1.184, allocations: 4 kB / 0.6925 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/1.184, allocations: 4 kB / 0.6925 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.197, allocations: 3.038 MB / 0.6955 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.199, allocations: 351.2 kB / 0.6958 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005087/1.199, allocations: 15.94 kB / 0.6958 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/1.202, allocations: 327.5 kB / 0.6962 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/1.202, allocations: 44.38 kB / 0.6962 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/1.202, allocations: 35.97 kB / 0.6962 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00214/1.204, allocations: 0.975 MB / 0.6972 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/1.204, allocations: 4 kB / 0.6972 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002985/1.207, allocations: 0.7801 MB / 0.6979 GB, free: 9.16 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (thermostatic3WayValve.vol.dynBal.U,thermostatic3WayValve.k_state,T_out.T) * 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 (58): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01528/1.223, allocations: 4.375 MB / 0.7022 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01384/1.236, allocations: 2.882 MB / 0.705 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/1.237, allocations: 448 / 0.705 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004445/1.241, allocations: 0.9161 MB / 0.7059 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004321/1.245, allocations: 0.7353 MB / 0.7067 GB, free: 224 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/1.261, allocations: 9.376 MB / 0.7158 GB, free: 6.617 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/1.262, allocations: 1.25 MB / 0.717 GB, free: 5.336 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002513/1.265, allocations: 416.1 kB / 0.7174 GB, free: 4.949 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/1.266, allocations: 0.5617 MB / 0.718 GB, free: 4.387 MB / 0.545 GB Notification: Performance of SimCode: time 2.034e-06/1.266, allocations: 0 / 0.718 GB, free: 4.387 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/1.375, allocations: 44.19 MB / 0.7611 GB, free: 8.812 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/1.376, allocations: 235.5 kB / 0.7613 GB, free: 8.578 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.208/6.583, allocations: 0 / 0.7613 GB, free: 8.578 MB / 0.5919 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_Thermostatic3WayValve.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1) Environment - environmentSimulation: