Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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: translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 91.53 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.001149/0.001149, allocations: 172.7 kB / 15.95 MB, free: 208 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.424/1.424, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.03/1.03, allocations: 135.3 MB / 426.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003473, allocations: 12.62 kB / 0.507 GB, free: 5.148 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1866, allocations: 82.3 MB / 0.5874 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.3741/0.5607, allocations: 21.32 MB / 0.6082 GB, free: 34.73 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0103/0.5711, allocations: 6.112 MB / 0.6142 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.5726, allocations: 23.38 kB / 0.6142 GB, free: 34.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.5738, allocations: 297 kB / 0.6145 GB, free: 34.58 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002861/0.5766, allocations: 0.8811 MB / 0.6153 GB, free: 34.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002713/0.5794, allocations: 0.8849 MB / 0.6162 GB, free: 34.28 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002978/0.5823, allocations: 2.154 MB / 0.6183 GB, free: 33.93 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007924/0.5832, allocations: 0.5734 MB / 0.6189 GB, free: 33.86 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.5843, allocations: 0.7062 MB / 0.6195 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.5851, allocations: 0.6381 MB / 0.6202 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.734e-05/0.5852, allocations: 34.91 kB / 0.6202 GB, free: 33.55 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.5869, allocations: 0.8711 MB / 0.6211 GB, free: 33.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.5871, allocations: 161.2 kB / 0.6212 GB, free: 33.46 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.5873, allocations: 196.1 kB / 0.6214 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.5883, allocations: 1.025 MB / 0.6224 GB, free: 33.3 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5884, allocations: 0 / 0.6224 GB, free: 33.3 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5884, allocations: 2.75 kB / 0.6224 GB, free: 33.3 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.5884, allocations: 0 / 0.6224 GB, free: 33.3 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001772/0.5902, allocations: 1.251 MB / 0.6236 GB, free: 32.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.5902, allocations: 13.47 kB / 0.6236 GB, free: 32.49 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.5904, allocations: 115.9 kB / 0.6237 GB, free: 32.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008329/0.5912, allocations: 0.649 MB / 0.6244 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.5912, allocations: 48.56 kB / 0.6244 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.212e-05/0.5913, allocations: 63.86 kB / 0.6245 GB, free: 32.12 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008906/0.5922, allocations: 0.6606 MB / 0.6251 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.5923, allocations: 0 / 0.6251 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.5923, allocations: 25 kB / 0.6252 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.5923, allocations: 13.09 kB / 0.6252 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006579/0.593, allocations: 461.1 kB / 0.6256 GB, free: 31.96 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.002801/0.5958, allocations: 2.545 MB / 0.6281 GB, free: 30.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006064/0.5964, allocations: 369.4 kB / 0.6284 GB, free: 30.58 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/0.5967, allocations: 194 kB / 0.6286 GB, free: 30.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002436/0.597, allocations: 337.1 kB / 0.6289 GB, free: 30.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005104/0.5975, allocations: 329.3 kB / 0.6293 GB, free: 30.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 1.843e-06/0.5975, allocations: 0 / 0.6293 GB, free: 30.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=37): time 0.001196/0.5987, allocations: 0.7036 MB / 0.63 GB, free: 29.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.5988, allocations: 237.6 kB / 0.6302 GB, free: 29.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008055/0.5996, allocations: 0.8408 MB / 0.631 GB, free: 29.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.5996, allocations: 40.27 kB / 0.631 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.5999, allocations: 439.1 kB / 0.6315 GB, free: 29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.89e-05/0.6, allocations: 128.3 kB / 0.6316 GB, free: 28.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.6, allocations: 11.09 kB / 0.6316 GB, free: 28.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.283e-05/0.6001, allocations: 323.6 kB / 0.6319 GB, free: 28.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.6004, allocations: 204.6 kB / 0.6321 GB, free: 28.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/0.6008, allocations: 361.9 kB / 0.6324 GB, free: 28.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.6011, allocations: 258.6 kB / 0.6327 GB, free: 28.17 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.6012, allocations: 2.5 kB / 0.6327 GB, free: 28.17 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009725/0.6021, allocations: 0.7265 MB / 0.6334 GB, free: 27.88 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.513e-05/0.6022, allocations: 202.5 kB / 0.6336 GB, free: 27.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.6022, allocations: 10.48 kB / 0.6336 GB, free: 27.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.6023, allocations: 9.281 kB / 0.6336 GB, free: 27.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009079/0.6032, allocations: 165.2 kB / 0.6338 GB, free: 27.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006098/0.6038, allocations: 1.784 MB / 0.6355 GB, free: 25.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006283/0.6044, allocations: 113.4 kB / 0.6356 GB, free: 25.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.6045, allocations: 25.83 kB / 0.6356 GB, free: 25.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.544e-06/0.6045, allocations: 6.219 kB / 0.6356 GB, free: 25.79 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008701/0.6054, allocations: 0.6347 MB / 0.6363 GB, free: 25.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.6054, allocations: 7.656 kB / 0.6363 GB, free: 25.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/0.6054, allocations: 10.31 kB / 0.6363 GB, free: 25.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000471/0.6059, allocations: 128.9 kB / 0.6364 GB, free: 25.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.6059, allocations: 16.05 kB / 0.6364 GB, free: 25.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.6064, allocations: 103.9 kB / 0.6365 GB, free: 25.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.6065, allocations: 24.91 kB / 0.6365 GB, free: 25.48 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003171/0.6068, allocations: 340.5 kB / 0.6369 GB, free: 25.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.162e-05/0.6069, allocations: 100.6 kB / 0.637 GB, free: 25.15 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.6079, allocations: 0.6781 MB / 0.6376 GB, free: 24.88 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.608, allocations: 9.562 kB / 0.6376 GB, free: 24.88 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.608, allocations: 3.953 kB / 0.6376 GB, free: 24.88 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.608, allocations: 6.688 kB / 0.6376 GB, free: 24.88 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.6097, allocations: 1.522 MB / 0.6391 GB, free: 24.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.6097, allocations: 0 / 0.6391 GB, free: 24.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003661/0.6101, allocations: 105.4 kB / 0.6392 GB, free: 24.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.6101, allocations: 2.969 kB / 0.6392 GB, free: 24.03 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.6101, allocations: 19.41 kB / 0.6393 GB, free: 24.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004622/0.6106, allocations: 1.77 MB / 0.641 GB, free: 22.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6106, allocations: 0 / 0.641 GB, free: 22.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.6117, allocations: 1.115 MB / 0.6421 GB, free: 21.63 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.612, allocations: 228.4 kB / 0.6423 GB, free: 21.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.6121, allocations: 21.05 kB / 0.6423 GB, free: 21.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/0.6126, allocations: 52.25 kB / 0.6424 GB, free: 21.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.748e-05/0.6127, allocations: 47.09 kB / 0.6424 GB, free: 21.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.6127, allocations: 17.44 kB / 0.6424 GB, free: 21.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005643/0.6133, allocations: 0.568 MB / 0.643 GB, free: 21.17 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6133, allocations: 0 / 0.643 GB, free: 21.17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00121/0.6145, allocations: 454.9 kB / 0.6434 GB, free: 21.08 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006172/0.6151, allocations: 335 kB / 0.6437 GB, free: 20.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001815/0.617, allocations: 1.019 MB / 0.6447 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.617, allocations: 0 / 0.6447 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005204/0.6175, allocations: 358.5 kB / 0.6451 GB, free: 20.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.6193, allocations: 383.7 kB / 0.6454 GB, free: 20.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.6219, allocations: 1.732 MB / 0.6471 GB, free: 19.31 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.6224, allocations: 1.007 MB / 0.6481 GB, free: 18.58 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006712/0.6231, allocations: 151.3 kB / 0.6483 GB, free: 18.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.6232, allocations: 68.42 kB / 0.6483 GB, free: 18.53 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/0.6232, allocations: 7.938 kB / 0.6483 GB, free: 18.52 MB / 0.4981 GB Notification: Performance of Templates: time 0.03352/0.6568, allocations: 15.44 MB / 0.6634 GB, free: 17.32 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)