Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001279/0.001279, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001365/0.001365, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002069/0.00207, allocations: 283.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.941/0.941, allocations: 169.2 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 99.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4615/0.4636, allocations: 86.97 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02623/0.4898, allocations: 23.27 MB / 0.7898 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01/0.4999, allocations: 6.489 MB / 0.7961 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001199/0.5011, allocations: 27.81 kB / 0.7961 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.5023, allocations: 393.4 kB / 0.7965 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002977/0.5053, allocations: 1.162 MB / 0.7977 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003016/0.5084, allocations: 1.071 MB / 0.7987 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002929/0.5113, allocations: 2.023 MB / 0.8007 GB, free: 1.398 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.5125, allocations: 0.7414 MB / 0.8014 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.514, allocations: 0.8445 MB / 0.8022 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009768/0.515, allocations: 0.7158 MB / 0.8029 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001736/0.5151, allocations: 72 kB / 0.803 GB, free: 15 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.5169, allocations: 0.9983 MB / 0.804 GB, free: 14 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.5171, allocations: 215.1 kB / 0.8042 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005649/0.5177, allocations: 0.4894 MB / 0.8046 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.5197, allocations: 1.513 MB / 0.8061 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5197, allocations: 0 / 0.8061 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5197, allocations: 0 / 0.8061 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.209e-05/0.5197, allocations: 0 / 0.8061 GB, free: 11.79 MB / 0.5762 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.002378/0.5221, allocations: 1.407 MB / 0.8075 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.5221, allocations: 8.031 kB / 0.8075 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.5224, allocations: 111.6 kB / 0.8076 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.5235, allocations: 0.7069 MB / 0.8083 GB, free: 9.453 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.5236, allocations: 49.31 kB / 0.8083 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.088e-05/0.5237, allocations: 60 kB / 0.8084 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.5248, allocations: 0.6624 MB / 0.8091 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.5248, allocations: 0 / 0.8091 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.56e-05/0.5248, allocations: 27.98 kB / 0.8091 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.5249, allocations: 12 kB / 0.8091 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008273/0.5257, allocations: 448.9 kB / 0.8095 GB, free: 8.168 MB / 0.5762 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.003449/0.5292, allocations: 2.542 MB / 0.812 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007011/0.5299, allocations: 363.1 kB / 0.8123 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.5302, allocations: 188.7 kB / 0.8125 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/0.5305, allocations: 340.4 kB / 0.8129 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005062/0.531, allocations: 322.6 kB / 0.8132 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.531, allocations: 0 / 0.8132 GB, free: 4.191 MB / 0.5762 GB Notification: Performance of matching and sorting (n=37): time 0.001306/0.5323, allocations: 0.6892 MB / 0.8138 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.5325, allocations: 243.3 kB / 0.8141 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009832/0.5334, allocations: 0.8484 MB / 0.8149 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.5335, allocations: 41.7 kB / 0.8149 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.5338, allocations: 436.3 kB / 0.8154 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.693e-05/0.5339, allocations: 126.5 kB / 0.8155 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.5341, allocations: 130.1 kB / 0.8156 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.5343, allocations: 330.5 kB / 0.8159 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/0.5347, allocations: 211.1 kB / 0.8161 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.5352, allocations: 371.7 kB / 0.8165 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/0.536, allocations: 0.5378 MB / 0.817 GB, free: 40 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.536, allocations: 0 / 0.817 GB, free: 40 kB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00127/0.5373, allocations: 0.7447 MB / 0.8177 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.5373, allocations: 37.69 kB / 0.8178 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.5374, allocations: 0 / 0.8178 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5374, allocations: 11.94 kB / 0.8178 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.5384, allocations: 175.8 kB / 0.8179 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.5394, allocations: 1.782 MB / 0.8197 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006028/0.54, allocations: 83.53 kB / 0.8198 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.817e-05/0.5401, allocations: 27.98 kB / 0.8198 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005827/0.5407, allocations: 379.6 kB / 0.8201 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000513/0.5412, allocations: 370.2 kB / 0.8205 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007833/0.542, allocations: 0.5307 MB / 0.821 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.167e-06/0.542, allocations: 4 kB / 0.821 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=72) (initialization_lambda0): time 0.001204/0.5432, allocations: 0.7229 MB / 0.8217 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.5433, allocations: 44.34 kB / 0.8218 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.5433, allocations: 4.438 kB / 0.8218 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.248e-06/0.5433, allocations: 11.94 kB / 0.8218 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.5438, allocations: 127.8 kB / 0.8219 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.5439, allocations: 8 kB / 0.8219 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006236/0.5445, allocations: 71.62 kB / 0.822 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.5445, allocations: 24 kB / 0.822 GB, free: 10.69 MB / 0.5919 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.0002103/0.5448, allocations: 256.9 kB / 0.8222 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.5449, allocations: 94.81 kB / 0.8223 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001166/0.5461, allocations: 0.664 MB / 0.823 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.5461, allocations: 7.984 kB / 0.823 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5461, allocations: 0 / 0.823 GB, free: 9.645 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.5464, allocations: 219.8 kB / 0.8232 GB, free: 9.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.5465, allocations: 12 kB / 0.8232 GB, free: 9.398 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.5469, allocations: 35.94 kB / 0.8232 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.721e-05/0.547, allocations: 51.88 kB / 0.8233 GB, free: 9.312 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001474/0.5485, allocations: 0.9397 MB / 0.8242 GB, free: 8.336 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001609/0.5501, allocations: 1.19 MB / 0.8254 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004182/0.5506, allocations: 245.2 kB / 0.8256 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007639/0.5513, allocations: 0.5709 MB / 0.8262 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of Backend: time 5.41e-07/0.5513, allocations: 0 / 0.8262 GB, free: 6.305 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003452/0.5548, allocations: 1.188 MB / 0.8273 GB, free: 5.098 MB / 0.5919 GB Notification: Performance of SimCode: time 0.003619/0.5584, allocations: 2.105 MB / 0.8294 GB, free: 2.93 MB / 0.5919 GB Notification: Performance of Templates: time 0.03287/0.5913, allocations: 18.72 MB / 0.8477 GB, free: 428 kB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)