Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.0008843/0.0008843, allocations: 99.62 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.0009659/0.000966, 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.354/1.354, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.122/1.122, allocations: 143.3 MB / 434.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004318, allocations: 8 kB / 0.5158 GB, free: 11.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1803, allocations: 83.41 MB / 0.5973 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.3588/0.5391, allocations: 19.56 MB / 0.6164 GB, free: 34.45 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008345/0.5475, allocations: 5.656 MB / 0.6219 GB, free: 30.54 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.5491, allocations: 22.19 kB / 0.6219 GB, free: 30.53 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.5506, allocations: 346.9 kB / 0.6223 GB, free: 30.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004125/0.5547, allocations: 1.138 MB / 0.6234 GB, free: 29.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00345/0.5582, allocations: 1.08 MB / 0.6244 GB, free: 29.16 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002295/0.5605, allocations: 1.219 MB / 0.6256 GB, free: 28.54 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000855/0.5614, allocations: 0.5849 MB / 0.6262 GB, free: 28.34 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00124/0.5626, allocations: 0.6605 MB / 0.6268 GB, free: 28.03 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006819/0.5633, allocations: 0.5085 MB / 0.6273 GB, free: 27.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.252e-05/0.5634, allocations: 30.56 kB / 0.6274 GB, free: 27.83 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001766/0.5652, allocations: 0.9028 MB / 0.6282 GB, free: 27.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.5653, allocations: 166 kB / 0.6284 GB, free: 27.51 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.5656, allocations: 197.6 kB / 0.6286 GB, free: 27.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.5667, allocations: 1.07 MB / 0.6296 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.5667, allocations: 0 / 0.6296 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.134e-06/0.5667, allocations: 2.781 kB / 0.6296 GB, free: 27.14 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.5667, allocations: 0 / 0.6296 GB, free: 27.14 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.001858/0.5686, allocations: 1.251 MB / 0.6309 GB, free: 26.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.5686, allocations: 10.31 kB / 0.6309 GB, free: 26.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.5688, allocations: 115.6 kB / 0.631 GB, free: 26.19 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009845/0.5698, allocations: 0.6473 MB / 0.6316 GB, free: 25.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/0.5698, allocations: 49.47 kB / 0.6317 GB, free: 25.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.5699, allocations: 61.91 kB / 0.6317 GB, free: 25.73 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009168/0.5708, allocations: 0.6617 MB / 0.6324 GB, free: 25.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.5709, allocations: 0 / 0.6324 GB, free: 25.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/0.5709, allocations: 28.41 kB / 0.6324 GB, free: 25.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.571, allocations: 13.69 kB / 0.6324 GB, free: 25.39 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007054/0.5717, allocations: 459.8 kB / 0.6328 GB, free: 25.25 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.002927/0.5746, allocations: 2.55 MB / 0.6353 GB, free: 23.48 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006216/0.5752, allocations: 372.4 kB / 0.6357 GB, free: 23.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/0.5755, allocations: 337.8 kB / 0.636 GB, free: 22.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005012/0.576, allocations: 325.9 kB / 0.6363 GB, free: 22.78 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.576, allocations: 4 kB / 0.6363 GB, free: 22.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=37): time 0.00121/0.5772, allocations: 0.774 MB / 0.6371 GB, free: 22.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.5773, allocations: 252.6 kB / 0.6373 GB, free: 22.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008353/0.5781, allocations: 0.8366 MB / 0.6381 GB, free: 21.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.5782, allocations: 39.55 kB / 0.6382 GB, free: 21.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002761/0.5785, allocations: 436 kB / 0.6386 GB, free: 21.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.001e-05/0.5786, allocations: 125.3 kB / 0.6387 GB, free: 21.29 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.5786, allocations: 13.06 kB / 0.6387 GB, free: 21.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.355e-05/0.5787, allocations: 327.7 kB / 0.639 GB, free: 20.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003369/0.579, allocations: 206.2 kB / 0.6392 GB, free: 20.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004141/0.5795, allocations: 360.4 kB / 0.6396 GB, free: 20.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.5799, allocations: 255.5 kB / 0.6398 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5799, allocations: 0 / 0.6398 GB, free: 20.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001145/0.581, allocations: 0.7276 MB / 0.6405 GB, free: 20.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003139/0.5814, allocations: 1.086 MB / 0.6416 GB, free: 19.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.5814, allocations: 6.516 kB / 0.6416 GB, free: 19.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.5814, allocations: 10.91 kB / 0.6416 GB, free: 19.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000995/0.5824, allocations: 179.5 kB / 0.6418 GB, free: 19.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006361/0.5831, allocations: 1.779 MB / 0.6435 GB, free: 17.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007058/0.5838, allocations: 108.5 kB / 0.6436 GB, free: 17.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.794e-05/0.5838, allocations: 30.31 kB / 0.6436 GB, free: 17.23 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.128e-06/0.5839, allocations: 2.625 kB / 0.6437 GB, free: 17.23 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009441/0.5848, allocations: 0.6378 MB / 0.6443 GB, free: 17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.5848, allocations: 7.156 kB / 0.6443 GB, free: 17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.302e-06/0.5848, allocations: 3.562 kB / 0.6443 GB, free: 17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.5853, allocations: 128.9 kB / 0.6444 GB, free: 16.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.5853, allocations: 12.52 kB / 0.6444 GB, free: 16.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006153/0.586, allocations: 95.36 kB / 0.6445 GB, free: 16.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.621e-05/0.586, allocations: 29.98 kB / 0.6445 GB, free: 16.94 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.0004334/0.5865, allocations: 347.9 kB / 0.6449 GB, free: 16.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.5866, allocations: 97.72 kB / 0.645 GB, free: 16.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.5877, allocations: 0.6803 MB / 0.6456 GB, free: 16.34 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.5878, allocations: 3.938 kB / 0.6456 GB, free: 16.34 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.5878, allocations: 0 / 0.6456 GB, free: 16.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5878, allocations: 5.734 kB / 0.6456 GB, free: 16.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.5897, allocations: 1.524 MB / 0.6471 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.5897, allocations: 3.719 kB / 0.6471 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004108/0.5901, allocations: 103.5 kB / 0.6472 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.5902, allocations: 3.188 kB / 0.6472 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.395e-05/0.5902, allocations: 14.67 kB / 0.6472 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005108/0.5907, allocations: 1.772 MB / 0.649 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5907, allocations: 1.688 kB / 0.649 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.5922, allocations: 1.172 MB / 0.6501 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003167/0.5925, allocations: 224 kB / 0.6503 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.5926, allocations: 15.5 kB / 0.6504 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/0.5932, allocations: 58.02 kB / 0.6504 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.5933, allocations: 45.64 kB / 0.6504 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.5934, allocations: 16.59 kB / 0.6505 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000802/0.5942, allocations: 0.5682 MB / 0.651 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5942, allocations: 0 / 0.651 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001508/0.5957, allocations: 460.5 kB / 0.6515 GB, free: 12.45 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.0007874/0.5965, allocations: 351.8 kB / 0.6518 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002358/0.5989, allocations: 1.021 MB / 0.6528 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5989, allocations: 192 / 0.6528 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006412/0.5996, allocations: 356.7 kB / 0.6531 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/0.6015, allocations: 366.7 kB / 0.6535 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.6043, allocations: 1.738 MB / 0.6552 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.6047, allocations: 1.012 MB / 0.6562 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006537/0.6054, allocations: 158.9 kB / 0.6563 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.6056, allocations: 67.23 kB / 0.6564 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.6056, allocations: 0 / 0.6564 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of Templates: time 0.03389/0.6395, allocations: 15.58 MB / 0.6716 GB, free: 7.758 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) Environment - environmentSimulation: