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: translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") translateModel(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 104 kB / 16.41 MB, free: 6.512 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.001263/0.001263, allocations: 187 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8352/0.8352, allocations: 132.2 MB / 423.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.69 kB / 0.582 GB, free: 23.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1665, allocations: 80.21 MB / 0.6603 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve): time 0.04735/0.2139, allocations: 48.17 MB / 0.7074 GB, free: 9.914 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01947/0.2334, allocations: 13.38 MB / 0.7205 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003062/0.2365, allocations: 71.56 kB / 0.7205 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.2396, allocations: 0.9047 MB / 0.7214 GB, free: 11.52 MB / 0.5606 GB [/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.006304/0.2459, allocations: 2.075 MB / 0.7234 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004881/0.2508, allocations: 1.858 MB / 0.7253 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.006611/0.2575, allocations: 4.105 MB / 0.7293 GB, free: 3.477 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/0.2603, allocations: 1.473 MB / 0.7307 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004599/0.265, allocations: 1.666 MB / 0.7323 GB, free: 300 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00243/0.2674, allocations: 1.182 MB / 0.7335 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005595/0.268, allocations: 148 kB / 0.7336 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003992/0.272, allocations: 1.459 MB / 0.735 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008919/0.2729, allocations: 446.5 kB / 0.7355 GB, free: 13.06 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001928/0.2749, allocations: 0.8553 MB / 0.7363 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006437/0.2813, allocations: 2.952 MB / 0.7392 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2813, allocations: 4 kB / 0.7392 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2813, allocations: 0 / 0.7392 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001013/0.2815, allocations: 0 / 0.7392 GB, free: 9.238 MB / 0.5762 GB 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.005323/0.2868, allocations: 2.009 MB / 0.7412 GB, free: 7.176 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.2868, allocations: 12.03 kB / 0.7412 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00992/0.2968, allocations: 1.29 MB / 0.7424 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003996/0.3008, allocations: 1.423 MB / 0.7438 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.3009, allocations: 70 kB / 0.7439 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003797/0.3013, allocations: 96 kB / 0.744 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006101/0.3075, allocations: 1.589 MB / 0.7455 GB, free: 2.598 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.3075, allocations: 3.984 kB / 0.7455 GB, free: 2.594 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001699/0.3077, allocations: 48 kB / 0.7456 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.3077, allocations: 20 kB / 0.7456 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008484/0.3162, allocations: 1.772 MB / 0.7473 GB, free: 0.7539 MB / 0.5762 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.4086/0.7249, allocations: 6.363 MB / 0.7535 GB, free: 81.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007533/0.7324, allocations: 1.387 MB / 0.7549 GB, free: 81.04 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003847/0.7363, allocations: 0.7012 MB / 0.7556 GB, free: 80.91 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005529/0.7419, allocations: 3.934 MB / 0.7594 GB, free: 77.46 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.7419, allocations: 42.3 kB / 0.7595 GB, free: 77.42 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=42): time 2.144e-06/0.7419, allocations: 0.5938 kB / 0.7595 GB, free: 77.42 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42): time 0.01232/0.7543, allocations: 1.981 MB / 0.7614 GB, free: 77.05 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.7544, allocations: 60.12 kB / 0.7615 GB, free: 76.99 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003044/0.7575, allocations: 1.315 MB / 0.7627 GB, free: 76.48 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.7576, allocations: 37.55 kB / 0.7628 GB, free: 76.44 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005882/0.7582, allocations: 0.6889 MB / 0.7635 GB, free: 75.93 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.7584, allocations: 153.3 kB / 0.7636 GB, free: 75.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004336/0.7589, allocations: 202.4 kB / 0.7638 GB, free: 75.72 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.759, allocations: 341.8 kB / 0.7641 GB, free: 75.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003784/0.7628, allocations: 0.7203 MB / 0.7648 GB, free: 75.27 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003877/0.7667, allocations: 1.065 MB / 0.7659 GB, free: 74.68 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006868/0.7735, allocations: 1.625 MB / 0.7674 GB, free: 73.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.758e-05/0.7736, allocations: 3.688 kB / 0.7675 GB, free: 73.93 MB / 0.5762 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008587/0.7822, allocations: 1.829 MB / 0.7692 GB, free: 73.05 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.7823, allocations: 14.59 kB / 0.7693 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/0.7823, allocations: 11.28 kB / 0.7693 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.211e-05/0.7823, allocations: 18.59 kB / 0.7693 GB, free: 73.04 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/0.7846, allocations: 393.7 kB / 0.7697 GB, free: 72.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.972e-05/0.7846, allocations: 24.2 kB / 0.7697 GB, free: 72.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/0.7873, allocations: 315.2 kB / 0.77 GB, free: 72.74 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.7875, allocations: 55.84 kB / 0.77 GB, free: 72.72 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004159/0.7916, allocations: 0.983 MB / 0.771 GB, free: 72.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003877/0.7955, allocations: 1.066 MB / 0.772 GB, free: 71.39 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006839/0.8024, allocations: 1.629 MB / 0.7736 GB, free: 70.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.1e-05/0.8024, allocations: 4.062 kB / 0.7736 GB, free: 70.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.008321/0.8108, allocations: 1.828 MB / 0.7754 GB, free: 69.43 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.8108, allocations: 9.781 kB / 0.7754 GB, free: 69.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.8108, allocations: 11.72 kB / 0.7754 GB, free: 69.43 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.8109, allocations: 20.62 kB / 0.7755 GB, free: 69.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/0.8131, allocations: 392.5 kB / 0.7758 GB, free: 69.29 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.685e-05/0.8131, allocations: 23.86 kB / 0.7759 GB, free: 69.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/0.8157, allocations: 280.7 kB / 0.7761 GB, free: 69.15 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.8159, allocations: 55.3 kB / 0.7762 GB, free: 69.13 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (101): * Single equations (assignments): 100 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003602/0.8163, allocations: 244.1 kB / 0.7764 GB, free: 68.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000337/0.8166, allocations: 134.5 kB / 0.7765 GB, free: 68.83 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007939/0.8246, allocations: 1.784 MB / 0.7783 GB, free: 67.92 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.579e-05/0.8246, allocations: 14.95 kB / 0.7783 GB, free: 67.91 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.8246, allocations: 0 / 0.7783 GB, free: 67.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00668/0.8313, allocations: 1.555 MB / 0.7798 GB, free: 67.03 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/0.8405, allocations: 3.024 MB / 0.7828 GB, free: 65.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.8405, allocations: 7.359 kB / 0.7828 GB, free: 65.03 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00183/0.8423, allocations: 284.9 kB / 0.783 GB, free: 64.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.8424, allocations: 7.547 kB / 0.783 GB, free: 64.92 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.31e-05/0.8424, allocations: 23.91 kB / 0.7831 GB, free: 64.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.8424, allocations: 7.906 kB / 0.7831 GB, free: 64.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.8425, allocations: 1.562 kB / 0.7831 GB, free: 64.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.8528, allocations: 2.452 MB / 0.7855 GB, free: 63.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007757/0.8536, allocations: 325.5 kB / 0.7858 GB, free: 63.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.8538, allocations: 25.56 kB / 0.7858 GB, free: 63.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001943/0.8558, allocations: 214.4 kB / 0.786 GB, free: 63.21 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.997e-05/0.8559, allocations: 33.2 kB / 0.786 GB, free: 63.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.792e-05/0.856, allocations: 30.81 kB / 0.7861 GB, free: 63.18 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001266/0.8572, allocations: 0.9085 MB / 0.787 GB, free: 62.68 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8572, allocations: 0 / 0.787 GB, free: 62.68 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00223/0.8595, allocations: 0.7756 MB / 0.7877 GB, free: 62.12 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (55): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001118/0.8606, allocations: 0.5151 MB / 0.7882 GB, free: 61.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01118/0.8718, allocations: 2.472 MB / 0.7906 GB, free: 59.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.8718, allocations: 4 kB / 0.7906 GB, free: 59.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003464/0.8753, allocations: 0.7486 MB / 0.7914 GB, free: 58.47 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003181/0.8785, allocations: 0.72 MB / 0.7921 GB, free: 57.82 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006078/0.8846, allocations: 2.76 MB / 0.7948 GB, free: 55.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005117/0.8851, allocations: 1.218 MB / 0.796 GB, free: 53.78 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005213/0.8857, allocations: 133 kB / 0.7961 GB, free: 53.65 MB / 0.5762 GB Notification: Performance of SimCode: time 9.62e-07/0.8857, allocations: 0 / 0.7961 GB, free: 53.65 MB / 0.5762 GB Notification: Performance of Templates: time 0.03339/0.9191, allocations: 28.37 MB / 0.8238 GB, free: 25.54 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.makefile (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 & ./IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.Thermostatic3WayValve.pipe 2>&1)