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.0009799/0.0009804, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.007351/0.007351, allocations: 173.4 kB / 16.27 MB, free: 6.613 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.575/1.575, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.08/1.08, allocations: 135.3 MB / 426.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003628, allocations: 12 kB / 0.5076 GB, free: 4.746 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2235, allocations: 82.31 MB / 0.588 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.4475/0.671, allocations: 22.5 MB / 0.6099 GB, free: 34.87 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009511/0.6806, allocations: 6.491 MB / 0.6163 GB, free: 34.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001197/0.6818, allocations: 23.72 kB / 0.6163 GB, free: 34.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0009418/0.6828, allocations: 325 kB / 0.6166 GB, free: 34.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002704/0.6855, allocations: 0.9949 MB / 0.6176 GB, free: 34.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002702/0.6882, allocations: 0.9621 MB / 0.6185 GB, free: 34.26 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002761/0.691, allocations: 2.492 MB / 0.621 GB, free: 33.92 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009154/0.6919, allocations: 0.6299 MB / 0.6216 GB, free: 33.82 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001411/0.6933, allocations: 0.7274 MB / 0.6223 GB, free: 33.65 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008329/0.6942, allocations: 0.68 MB / 0.623 GB, free: 33.49 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.108e-05/0.6943, allocations: 32.34 kB / 0.623 GB, free: 33.49 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001822/0.6961, allocations: 0.9436 MB / 0.6239 GB, free: 33.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.6963, allocations: 176.9 kB / 0.6241 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003909/0.6967, allocations: 471.2 kB / 0.6245 GB, free: 33.19 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001552/0.6982, allocations: 1.424 MB / 0.6259 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.6982, allocations: 4 kB / 0.6259 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6983, allocations: 0 / 0.6259 GB, free: 32.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.6983, allocations: 0 / 0.6259 GB, free: 32.91 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.001846/0.7001, allocations: 1.235 MB / 0.6271 GB, free: 32.04 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.7002, allocations: 11.91 kB / 0.6271 GB, free: 32.04 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.7004, allocations: 122.5 kB / 0.6273 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009098/0.7013, allocations: 0.6743 MB / 0.6279 GB, free: 31.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.481e-05/0.7013, allocations: 48.81 kB / 0.628 GB, free: 31.53 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.249e-05/0.7014, allocations: 61.66 kB / 0.628 GB, free: 31.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009812/0.7024, allocations: 0.6727 MB / 0.6287 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.7024, allocations: 3.938 kB / 0.6287 GB, free: 31.18 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.7025, allocations: 22.31 kB / 0.6287 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.7025, allocations: 17.7 kB / 0.6287 GB, free: 31.16 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000728/0.7033, allocations: 461.3 kB / 0.6292 GB, free: 31.02 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.002911/0.7062, allocations: 2.55 MB / 0.6316 GB, free: 29.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006493/0.7068, allocations: 368 kB / 0.632 GB, free: 29.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/0.7071, allocations: 196.8 kB / 0.6322 GB, free: 29.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002367/0.7074, allocations: 341.5 kB / 0.6325 GB, free: 28.7 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000494/0.7079, allocations: 329.2 kB / 0.6328 GB, free: 28.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.7079, allocations: 0 / 0.6328 GB, free: 28.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=37): time 0.001163/0.7091, allocations: 0.705 MB / 0.6335 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.31e-05/0.7092, allocations: 244.6 kB / 0.6337 GB, free: 27.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000888/0.7101, allocations: 0.854 MB / 0.6346 GB, free: 27.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.7101, allocations: 42.59 kB / 0.6346 GB, free: 27.56 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.7104, allocations: 428.8 kB / 0.635 GB, free: 27.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.7105, allocations: 118.3 kB / 0.6351 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.358e-05/0.7106, allocations: 60.52 kB / 0.6352 GB, free: 27.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.029e-05/0.7106, allocations: 330.2 kB / 0.6355 GB, free: 26.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003525/0.711, allocations: 212 kB / 0.6357 GB, free: 26.72 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/0.7114, allocations: 374 kB / 0.6361 GB, free: 26.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006765/0.7121, allocations: 0.539 MB / 0.6366 GB, free: 26.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7121, allocations: 0 / 0.6366 GB, free: 26.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001038/0.7132, allocations: 0.7496 MB / 0.6373 GB, free: 25.87 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.981e-05/0.7133, allocations: 206 kB / 0.6375 GB, free: 25.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.7133, allocations: 7.766 kB / 0.6375 GB, free: 25.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.7133, allocations: 5.906 kB / 0.6375 GB, free: 25.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000923/0.7142, allocations: 180 kB / 0.6377 GB, free: 25.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000693/0.715, allocations: 1.784 MB / 0.6395 GB, free: 23.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007052/0.7157, allocations: 109.7 kB / 0.6396 GB, free: 23.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.256e-05/0.7157, allocations: 25.77 kB / 0.6396 GB, free: 23.77 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/0.7157, allocations: 2.844 kB / 0.6396 GB, free: 23.77 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009925/0.7167, allocations: 0.6435 MB / 0.6402 GB, free: 23.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.7168, allocations: 3.75 kB / 0.6402 GB, free: 23.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.644e-06/0.7168, allocations: 17.5 kB / 0.6402 GB, free: 23.53 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004501/0.7172, allocations: 124.2 kB / 0.6404 GB, free: 23.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.7172, allocations: 10.34 kB / 0.6404 GB, free: 23.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.7178, allocations: 102.9 kB / 0.6405 GB, free: 23.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/0.7178, allocations: 25.02 kB / 0.6405 GB, free: 23.47 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 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000332/0.7182, allocations: 346.9 kB / 0.6408 GB, free: 23.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.7183, allocations: 99.47 kB / 0.6409 GB, free: 23.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.7194, allocations: 0.6767 MB / 0.6416 GB, free: 22.88 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.7194, allocations: 5.25 kB / 0.6416 GB, free: 22.88 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.7195, allocations: 0 / 0.6416 GB, free: 22.88 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.7195, allocations: 5.625 kB / 0.6416 GB, free: 22.88 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.7212, allocations: 1.534 MB / 0.6431 GB, free: 22.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.7213, allocations: 0.5 kB / 0.6431 GB, free: 22.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.7216, allocations: 106.7 kB / 0.6432 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.7216, allocations: 2.906 kB / 0.6432 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.7217, allocations: 12.53 kB / 0.6432 GB, free: 22.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004926/0.7222, allocations: 1.771 MB / 0.6449 GB, free: 20.22 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.7222, allocations: 0 / 0.6449 GB, free: 20.22 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.7236, allocations: 1.128 MB / 0.646 GB, free: 19.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.7239, allocations: 231.8 kB / 0.6462 GB, free: 19.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.724, allocations: 13.5 kB / 0.6463 GB, free: 19.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.7245, allocations: 55.28 kB / 0.6463 GB, free: 19.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.7246, allocations: 50.27 kB / 0.6464 GB, free: 19.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.7247, allocations: 17.73 kB / 0.6464 GB, free: 19.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005928/0.7253, allocations: 0.5724 MB / 0.6469 GB, free: 19.15 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7253, allocations: 0 / 0.6469 GB, free: 19.15 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00129/0.7266, allocations: 453.4 kB / 0.6474 GB, free: 19.06 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 (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008098/0.7274, allocations: 337.5 kB / 0.6477 GB, free: 18.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002436/0.7298, allocations: 1.03 MB / 0.6487 GB, free: 18.51 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.7299, allocations: 2.188 kB / 0.6487 GB, free: 18.51 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007357/0.7306, allocations: 357.9 kB / 0.649 GB, free: 18.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002676/0.7333, allocations: 373.1 kB / 0.6494 GB, free: 18.27 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.7364, allocations: 1.813 MB / 0.6512 GB, free: 17.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.737, allocations: 1.009 MB / 0.6522 GB, free: 16.46 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0007278/0.7377, allocations: 155.4 kB / 0.6523 GB, free: 16.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.7379, allocations: 72.02 kB / 0.6524 GB, free: 16.41 MB / 0.4981 GB Notification: Performance of SimCode: time 1.944e-06/0.7379, allocations: 4 kB / 0.6524 GB, free: 16.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.04141/0.7793, allocations: 15.88 MB / 0.6679 GB, free: 14.51 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)