Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_dev_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.001255/0.001255, allocations: 100.3 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.001376/0.001376, 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 1.637/1.637, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.23/1.23, allocations: 135.2 MB / 426.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003105/0.0003106, allocations: 12 kB / 0.5069 GB, free: 5.164 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1801, allocations: 82.31 MB / 0.5873 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.01788/0.198, allocations: 18.75 MB / 0.6056 GB, free: 232 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.5497/0.7477, allocations: 4.484 MB / 0.61 GB, free: 34.77 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001343/0.7491, allocations: 19.31 kB / 0.61 GB, free: 34.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.7506, allocations: 270.1 kB / 0.6103 GB, free: 34.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004683/0.7553, allocations: 0.8951 MB / 0.6111 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003501/0.7588, allocations: 0.7281 MB / 0.6118 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002929/0.7618, allocations: 0.9154 MB / 0.6127 GB, free: 34.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008562/0.7627, allocations: 395.2 kB / 0.6131 GB, free: 34.69 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00152/0.7642, allocations: 0.4925 MB / 0.6136 GB, free: 34.69 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009444/0.7651, allocations: 347.7 kB / 0.6139 GB, free: 34.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001701/0.7653, allocations: 18.34 kB / 0.6139 GB, free: 34.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.7672, allocations: 397.1 kB / 0.6143 GB, free: 34.68 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.7674, allocations: 103.9 kB / 0.6144 GB, free: 34.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003682/0.7678, allocations: 156.1 kB / 0.6146 GB, free: 34.6 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.7692, allocations: 0.71 MB / 0.6153 GB, free: 34.55 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.7692, allocations: 0 / 0.6153 GB, free: 34.55 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.565e-06/0.7692, allocations: 3.938 kB / 0.6153 GB, free: 34.54 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.479e-05/0.7693, allocations: 0 / 0.6153 GB, free: 34.54 MB / 0.4981 GB 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.002775/0.7721, allocations: 0.9262 MB / 0.6162 GB, free: 33.92 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/0.7721, allocations: 11.22 kB / 0.6162 GB, free: 33.92 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.7723, allocations: 64.78 kB / 0.6162 GB, free: 33.88 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.7726, allocations: 78.31 kB / 0.6163 GB, free: 33.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.7743, allocations: 0.5305 MB / 0.6168 GB, free: 33.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.077e-05/0.7743, allocations: 29.72 kB / 0.6169 GB, free: 33.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.7745, allocations: 39.28 kB / 0.6169 GB, free: 33.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009329/0.7754, allocations: 316.8 kB / 0.6172 GB, free: 33.53 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.7754, allocations: 0 / 0.6172 GB, free: 33.53 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.833e-05/0.7755, allocations: 11.84 kB / 0.6172 GB, free: 33.53 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.004e-05/0.7755, allocations: 17.81 kB / 0.6172 GB, free: 33.53 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009174/0.7765, allocations: 264 kB / 0.6175 GB, free: 33.53 MB / 0.4981 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.003/0.7795, allocations: 1.578 MB / 0.619 GB, free: 32.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.7799, allocations: 194.8 kB / 0.6192 GB, free: 32.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003206/0.7802, allocations: 416.3 kB / 0.6196 GB, free: 32.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.7803, allocations: 39.06 kB / 0.6196 GB, free: 32.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.7803, allocations: 0 / 0.6196 GB, free: 32.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.0007391/0.781, allocations: 339.3 kB / 0.62 GB, free: 32.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.7811, allocations: 62.61 kB / 0.62 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.7818, allocations: 0.6405 MB / 0.6207 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.7818, allocations: 34.77 kB / 0.6207 GB, free: 31.95 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.7821, allocations: 303.9 kB / 0.621 GB, free: 31.82 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.559e-05/0.7821, allocations: 75.67 kB / 0.621 GB, free: 31.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.7821, allocations: 7 kB / 0.6211 GB, free: 31.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.7823, allocations: 372.2 kB / 0.6214 GB, free: 31.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.7826, allocations: 130.9 kB / 0.6215 GB, free: 31.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003081/0.7829, allocations: 203.3 kB / 0.6217 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.7832, allocations: 154.1 kB / 0.6219 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.7832, allocations: 0 / 0.6219 GB, free: 31.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000733/0.7839, allocations: 454.6 kB / 0.6223 GB, free: 31.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.7841, allocations: 449.9 kB / 0.6227 GB, free: 30.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.7841, allocations: 0 / 0.6227 GB, free: 30.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.7841, allocations: 13.33 kB / 0.6227 GB, free: 30.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008073/0.7849, allocations: 151 kB / 0.6229 GB, free: 30.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005002/0.7854, allocations: 1.185 MB / 0.6241 GB, free: 29.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.786, allocations: 66.88 kB / 0.6241 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.786, allocations: 22.06 kB / 0.6241 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.786, allocations: 2.781 kB / 0.6241 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006625/0.7867, allocations: 374.6 kB / 0.6245 GB, free: 29.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.7867, allocations: 0 / 0.6245 GB, free: 29.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.632e-06/0.7867, allocations: 6.891 kB / 0.6245 GB, free: 29.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004366/0.7872, allocations: 119.2 kB / 0.6246 GB, free: 29.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.7872, allocations: 3.031 kB / 0.6246 GB, free: 29.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003872/0.7876, allocations: 58.56 kB / 0.6247 GB, free: 29.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.7876, allocations: 15 kB / 0.6247 GB, free: 29.57 MB / 0.4981 GB 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.0002723/0.7879, allocations: 264.9 kB / 0.6249 GB, free: 29.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.017e-05/0.788, allocations: 60.42 kB / 0.625 GB, free: 29.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006569/0.7886, allocations: 325.3 kB / 0.6253 GB, free: 29.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.7887, allocations: 9.922 kB / 0.6253 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.7887, allocations: 4 kB / 0.6253 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.7887, allocations: 0 / 0.6253 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001394/0.7901, allocations: 0.9122 MB / 0.6262 GB, free: 28.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.7901, allocations: 0 / 0.6262 GB, free: 28.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/0.7904, allocations: 71.02 kB / 0.6263 GB, free: 28.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7904, allocations: 0 / 0.6263 GB, free: 28.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.777e-05/0.7905, allocations: 8.969 kB / 0.6263 GB, free: 28.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004514/0.7909, allocations: 1.185 MB / 0.6274 GB, free: 27.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.7909, allocations: 0 / 0.6274 GB, free: 27.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.7918, allocations: 0.582 MB / 0.628 GB, free: 27.47 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.792, allocations: 184.3 kB / 0.6282 GB, free: 27.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.258e-05/0.7921, allocations: 5.812 kB / 0.6282 GB, free: 27.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.7924, allocations: 40.52 kB / 0.6282 GB, free: 27.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.054e-05/0.7925, allocations: 11.69 kB / 0.6282 GB, free: 27.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.7925, allocations: 9.984 kB / 0.6283 GB, free: 27.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000622/0.7931, allocations: 445.7 kB / 0.6287 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7932, allocations: 0 / 0.6287 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001088/0.7943, allocations: 298.1 kB / 0.629 GB, free: 27.2 MB / 0.4981 GB 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.001757/0.796, allocations: 1.536 MB / 0.6305 GB, free: 26.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001506/0.7975, allocations: 0.5167 MB / 0.631 GB, free: 26.08 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.7976, allocations: 0 / 0.631 GB, free: 26.08 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.7979, allocations: 137.4 kB / 0.6311 GB, free: 26.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.7996, allocations: 283.6 kB / 0.6314 GB, free: 26.06 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.8031, allocations: 2.18 MB / 0.6335 GB, free: 24.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.8036, allocations: 0.9078 MB / 0.6344 GB, free: 23.83 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000546/0.8041, allocations: 124.2 kB / 0.6345 GB, free: 23.81 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/0.8045, allocations: 223.3 kB / 0.6347 GB, free: 23.8 MB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/0.8045, allocations: 0 / 0.6347 GB, free: 23.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05344/0.8579, allocations: 16.08 MB / 0.6504 GB, free: 22.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.8582, allocations: 250.8 kB / 0.6507 GB, free: 22.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/3.269, allocations: 3.938 kB / 0.6507 GB, free: 22.23 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1) Environment - environmentSimulation: