Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002048/0.002049, allocations: 177.5 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.244/1.244, allocations: 133.5 MB / 141.6 MB, free: 2.855 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.532/2.532, allocations: 221.5 MB / 395.5 MB, free: 10.81 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 104.5 kB / 478.2 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.79e-05/3.764e-05, allocations: 8 kB / 0.5536 GB, free: 8.953 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7954/0.7955, allocations: 82.3 MB / 0.6339 GB, free: 40.81 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.459/2.255, allocations: 363.3 MB / 0.9887 GB, free: 5.148 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004549/2.256, allocations: 102.9 kB / 0.9888 GB, free: 5.094 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.212/5.468, allocations: 0.5251 GB / 1.514 GB, free: 81.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 7.113e-06/5.468, allocations: 3.938 kB / 1.514 GB, free: 81.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0006869/5.469, allocations: 43.91 kB / 1.514 GB, free: 81.86 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.01081/5.48, allocations: 1.781 MB / 1.516 GB, free: 80.04 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 9.361e-05/5.48, allocations: 12.03 kB / 1.516 GB, free: 80.03 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004298/5.484, allocations: 359.1 kB / 1.516 GB, free: 79.68 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/5.495, allocations: 2.014 MB / 1.518 GB, free: 77.66 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001766/5.495, allocations: 32 kB / 1.518 GB, free: 77.63 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006948/5.496, allocations: 68 kB / 1.518 GB, free: 77.56 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003456/5.499, allocations: 0.7537 MB / 1.519 GB, free: 76.81 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004346/5.504, allocations: 0.9553 MB / 1.52 GB, free: 75.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-05/5.504, allocations: 0 / 1.52 GB, free: 75.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002972/5.504, allocations: 4 kB / 1.52 GB, free: 75.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.841e-05/5.504, allocations: 24 kB / 1.52 GB, free: 75.78 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or 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.01273/5.517, allocations: 4.443 MB / 1.524 GB, free: 71.23 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/5.518, allocations: 0.5426 MB / 1.525 GB, free: 70.68 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/5.519, allocations: 264 kB / 1.525 GB, free: 70.42 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006961/5.526, allocations: 2.886 MB / 1.528 GB, free: 67.19 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007629/5.527, allocations: 285.8 kB / 1.528 GB, free: 66.9 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001157/5.528, allocations: 39.38 kB / 1.528 GB, free: 66.86 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=55): time 7.203e-06/5.528, allocations: 0 / 1.528 GB, free: 66.86 MB / 0.6823 GB Notification: Performance of matching and sorting (n=55): time 0.004719/5.533, allocations: 0.744 MB / 1.529 GB, free: 66.11 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/5.533, allocations: 66.61 kB / 1.529 GB, free: 66.03 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004038/5.537, allocations: 0.9797 MB / 1.53 GB, free: 65.04 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001479/5.537, allocations: 33.7 kB / 1.53 GB, free: 65 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001424/5.538, allocations: 0.7414 MB / 1.53 GB, free: 64.25 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/5.539, allocations: 192.7 kB / 1.531 GB, free: 64.07 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.615e-05/5.539, allocations: 0 / 1.531 GB, free: 64.07 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001849/5.539, allocations: 345.9 kB / 1.531 GB, free: 63.72 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006218/5.54, allocations: 226.6 kB / 1.531 GB, free: 63.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/5.541, allocations: 0.6036 MB / 1.532 GB, free: 62.72 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003008/5.544, allocations: 0.498 MB / 1.532 GB, free: 62.22 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-05/5.544, allocations: 0 / 1.532 GB, free: 62.22 MB / 0.6823 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.005221/5.549, allocations: 1.1 MB / 1.533 GB, free: 61.11 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.002692/5.552, allocations: 4.363 MB / 1.538 GB, free: 56.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.03e-05/5.552, allocations: 15.98 kB / 1.538 GB, free: 56.46 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003539/5.552, allocations: 44.84 kB / 1.538 GB, free: 56.41 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/5.553, allocations: 211.6 kB / 1.538 GB, free: 56.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006471/5.554, allocations: 0.5875 MB / 1.538 GB, free: 55.59 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/5.557, allocations: 95.73 kB / 1.539 GB, free: 55.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002535/5.557, allocations: 51.98 kB / 1.539 GB, free: 55.45 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/5.557, allocations: 7.953 kB / 1.539 GB, free: 55.44 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00461/5.562, allocations: 0.9355 MB / 1.54 GB, free: 54.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.451e-05/5.562, allocations: 11.94 kB / 1.54 GB, free: 54.49 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/5.562, allocations: 60.58 kB / 1.54 GB, free: 54.43 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/5.563, allocations: 204.1 kB / 1.54 GB, free: 54.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006375/5.564, allocations: 0.5914 MB / 1.54 GB, free: 53.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/5.566, allocations: 75.84 kB / 1.54 GB, free: 53.54 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/5.566, allocations: 59.92 kB / 1.541 GB, free: 53.48 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,realToBoolean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 110 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004179/5.567, allocations: 136.7 kB / 1.541 GB, free: 53.34 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004112/5.571, allocations: 0.7439 MB / 1.541 GB, free: 52.59 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006856/5.572, allocations: 130.3 kB / 1.541 GB, free: 52.46 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004733/5.576, allocations: 1.127 MB / 1.543 GB, free: 51.32 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.354e-05/5.576, allocations: 15.98 kB / 1.543 GB, free: 51.31 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/5.576, allocations: 0 / 1.543 GB, free: 51.31 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002682/5.579, allocations: 0.9023 MB / 1.543 GB, free: 50.36 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or 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.00795/5.587, allocations: 2.031 MB / 1.545 GB, free: 48.29 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/5.587, allocations: 4.031 kB / 1.545 GB, free: 48.29 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000806/5.588, allocations: 111.9 kB / 1.546 GB, free: 48.18 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000224/5.588, allocations: 32.84 kB / 1.546 GB, free: 48.14 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-05/5.588, allocations: 11.98 kB / 1.546 GB, free: 48.13 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005272/5.589, allocations: 0.5795 MB / 1.546 GB, free: 47.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/5.589, allocations: 0 / 1.546 GB, free: 47.52 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004514/5.593, allocations: 1.427 MB / 1.548 GB, free: 46.04 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/5.595, allocations: 307.2 kB / 1.548 GB, free: 45.71 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000741/5.596, allocations: 11.94 kB / 1.548 GB, free: 45.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/5.598, allocations: 55.8 kB / 1.548 GB, free: 45.65 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/5.598, allocations: 56.47 kB / 1.548 GB, free: 45.59 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/5.598, allocations: 35.98 kB / 1.548 GB, free: 45.56 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.003084/5.601, allocations: 0.7343 MB / 1.549 GB, free: 44.82 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9.72e-07/5.601, allocations: 0 / 1.549 GB, free: 44.82 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.006863/5.608, allocations: 0.8535 MB / 1.55 GB, free: 43.97 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (threeWayValveSwitch.vol.dynBal.U,T_mix.T,T_leg0.T,T_leg1.T) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,realToBoolean.y) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01086/5.619, allocations: 3.24 MB / 1.553 GB, free: 40.82 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00421/5.623, allocations: 1.241 MB / 1.554 GB, free: 39.56 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/5.623, allocations: 6.375 kB / 1.554 GB, free: 39.55 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0009658/5.624, allocations: 354.2 kB / 1.554 GB, free: 39.21 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006187/5.63, allocations: 0.6171 MB / 1.555 GB, free: 38.63 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/5.645, allocations: 2.358 MB / 1.557 GB, free: 36.23 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002165/5.647, allocations: 1.299 MB / 1.558 GB, free: 34.9 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.005067/5.652, allocations: 498.9 kB / 1.559 GB, free: 34.43 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/5.654, allocations: 0.5734 MB / 1.56 GB, free: 33.86 MB / 0.6823 GB Notification: Performance of SimCode: time 3.487e-06/5.654, allocations: 0 / 1.56 GB, free: 33.86 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9162/6.57, allocations: 43.42 MB / 1.602 GB, free: 101.4 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003448/6.57, allocations: 184.8 kB / 1.602 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.339/12.91, allocations: 0 / 1.602 GB, free: 101.3 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Simplified_Examples_ThreeWayValveSwitch.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Simplified.Examples.ThreeWayValveSwitch.pipe 2>&1)