Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",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.001324/0.001324, allocations: 103 kB / 15.06 MB, free: 1.098 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.001143/0.001143, allocations: 173.3 kB / 15.95 MB, free: 212 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.668/2.668, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.234/1.234, allocations: 132.2 MB / 423.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006023/0.0006024, allocations: 8.562 kB / 0.5033 GB, free: 4.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7907/0.7913, allocations: 81.57 MB / 0.583 GB, free: 4.16 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.04214/0.8335, allocations: 18.76 MB / 0.6013 GB, free: 7.031 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.8484, allocations: 4.506 MB / 0.6057 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002075/0.8505, allocations: 16.91 kB / 0.6057 GB, free: 3.625 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.8527, allocations: 263.3 kB / 0.606 GB, free: 3.402 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.86, allocations: 0.8989 MB / 0.6068 GB, free: 2.656 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00508/0.8651, allocations: 0.7304 MB / 0.6076 GB, free: 2.16 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004611/0.8697, allocations: 0.9133 MB / 0.6084 GB, free: 1.562 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001754/0.8715, allocations: 390.3 kB / 0.6088 GB, free: 1.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002981/0.8745, allocations: 499.7 kB / 0.6093 GB, free: 1.016 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001398/0.876, allocations: 348.3 kB / 0.6096 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.8762, allocations: 19.72 kB / 0.6096 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.8784, allocations: 390.7 kB / 0.61 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003062/0.8787, allocations: 113.6 kB / 0.6101 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006156/0.8794, allocations: 150.6 kB / 0.6103 GB, free: 476 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002397/0.8818, allocations: 0.704 MB / 0.611 GB, free: 15.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.8818, allocations: 0 / 0.611 GB, free: 15.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.908e-06/0.8819, allocations: 4 kB / 0.611 GB, free: 15.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.8819, allocations: 0 / 0.611 GB, free: 15.97 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0042/0.8862, allocations: 0.9318 MB / 0.6119 GB, free: 15.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.035e-05/0.8862, allocations: 9.406 kB / 0.6119 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002229/0.8865, allocations: 77.42 kB / 0.612 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.8868, allocations: 78.59 kB / 0.612 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/0.8887, allocations: 0.5227 MB / 0.6125 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.559e-05/0.8888, allocations: 28.69 kB / 0.6126 GB, free: 14.63 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.889, allocations: 42.8 kB / 0.6126 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/0.8902, allocations: 316 kB / 0.6129 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.8903, allocations: 3.984 kB / 0.6129 GB, free: 14.43 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.856e-05/0.8903, allocations: 14.78 kB / 0.6129 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.061e-05/0.8904, allocations: 12.94 kB / 0.6129 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.8916, allocations: 267.2 kB / 0.6132 GB, free: 14.29 MB / 462.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.005482/0.8971, allocations: 1.568 MB / 0.6147 GB, free: 12.97 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.8979, allocations: 200.6 kB / 0.6149 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006572/0.8986, allocations: 423.1 kB / 0.6153 GB, free: 12.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.8987, allocations: 36.91 kB / 0.6154 GB, free: 12.32 MB / 462.1 MB Notification: Performance of pre-optimization done (n=19): time 4.548e-06/0.8987, allocations: 0 / 0.6154 GB, free: 12.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=19): time 0.001809/0.9005, allocations: 339 kB / 0.6157 GB, free: 12.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.61e-05/0.9006, allocations: 58.52 kB / 0.6157 GB, free: 12.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001897/0.9025, allocations: 0.6414 MB / 0.6164 GB, free: 11.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001392/0.9027, allocations: 32.3 kB / 0.6164 GB, free: 11.67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000604/0.9033, allocations: 302.1 kB / 0.6167 GB, free: 11.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.9035, allocations: 72.53 kB / 0.6167 GB, free: 11.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.734e-05/0.9035, allocations: 5.125 kB / 0.6168 GB, free: 11.33 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003029/0.9039, allocations: 377.3 kB / 0.6171 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.9045, allocations: 132.9 kB / 0.6172 GB, free: 10.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006724/0.9052, allocations: 206 kB / 0.6174 GB, free: 10.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.9059, allocations: 151.8 kB / 0.6176 GB, free: 10.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.906, allocations: 5.172 kB / 0.6176 GB, free: 10.69 MB / 462.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001883/0.9079, allocations: 449.1 kB / 0.618 GB, free: 10.47 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003601/0.9083, allocations: 453 kB / 0.6184 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.9083, allocations: 1.031 kB / 0.6184 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.9083, allocations: 2.938 kB / 0.6184 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001455/0.9098, allocations: 146.4 kB / 0.6186 GB, free: 9.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.9111, allocations: 1.193 MB / 0.6198 GB, free: 8.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001096/0.9122, allocations: 68.88 kB / 0.6198 GB, free: 8.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.936e-05/0.9123, allocations: 20.7 kB / 0.6198 GB, free: 8.703 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.9123, allocations: 2.594 kB / 0.6198 GB, free: 8.703 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001455/0.9138, allocations: 371.1 kB / 0.6202 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.9138, allocations: 1.312 kB / 0.6202 GB, free: 8.531 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.9138, allocations: 7.469 kB / 0.6202 GB, free: 8.527 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00089/0.9147, allocations: 118.1 kB / 0.6203 GB, free: 8.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.173e-05/0.9148, allocations: 3.719 kB / 0.6203 GB, free: 8.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.9158, allocations: 59.7 kB / 0.6204 GB, free: 8.461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/0.9159, allocations: 20.02 kB / 0.6204 GB, free: 8.453 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008125/0.9167, allocations: 265 kB / 0.6206 GB, free: 8.215 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003107/0.9171, allocations: 63.38 kB / 0.6207 GB, free: 8.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.9184, allocations: 332.4 kB / 0.621 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.9185, allocations: 2.094 kB / 0.621 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.9185, allocations: 1 kB / 0.621 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.9185, allocations: 192 / 0.621 GB, free: 7.984 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.9209, allocations: 0.9155 MB / 0.6219 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.9209, allocations: 1.25 kB / 0.6219 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.9213, allocations: 59.44 kB / 0.622 GB, free: 7.242 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.9213, allocations: 10.12 kB / 0.622 GB, free: 7.234 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.9214, allocations: 7.531 kB / 0.622 GB, free: 7.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007133/0.9221, allocations: 1.182 MB / 0.6232 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.9221, allocations: 1.188 kB / 0.6232 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.9236, allocations: 0.5752 MB / 0.6237 GB, free: 5.602 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.924, allocations: 180.2 kB / 0.6239 GB, free: 5.43 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-05/0.9241, allocations: 7.094 kB / 0.6239 GB, free: 5.426 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.9245, allocations: 36.91 kB / 0.6239 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.756e-05/0.9246, allocations: 28.08 kB / 0.624 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.9247, allocations: 10.22 kB / 0.624 GB, free: 5.383 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001304/0.926, allocations: 443.8 kB / 0.6244 GB, free: 5.125 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.926, allocations: 1.156 kB / 0.6244 GB, free: 5.125 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002101/0.9281, allocations: 296.9 kB / 0.6247 GB, free: 5.066 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003382/0.9315, allocations: 1.523 MB / 0.6262 GB, free: 3.656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002714/0.9343, allocations: 0.5192 MB / 0.6267 GB, free: 3.137 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.9343, allocations: 0 / 0.6267 GB, free: 3.137 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006405/0.935, allocations: 140.3 kB / 0.6268 GB, free: 3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/0.9382, allocations: 298.9 kB / 0.6271 GB, free: 2.719 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/0.9441, allocations: 2.182 MB / 0.6292 GB, free: 464 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.9453, allocations: 0.9058 MB / 0.6301 GB, free: 15.52 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.9465, allocations: 112.8 kB / 0.6302 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/0.9472, allocations: 231.4 kB / 0.6304 GB, free: 15.18 MB / 478.1 MB Notification: Performance of SimCode: time 2.815e-06/0.9472, allocations: 0 / 0.6304 GB, free: 15.18 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07465/1.022, allocations: 16.08 MB / 0.6461 GB, free: 15.49 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0006697/1.023, allocations: 244.7 kB / 0.6464 GB, free: 15.22 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.596/4.619, allocations: 4.062 kB / 0.6464 GB, free: 15.21 MB / 494.1 MB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1) Environment - environmentSimulation: