Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 111.9 kB / 16.42 MB, free: 6.453 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.001014/0.001014, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.264/1.264, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002065/0.002065, allocations: 298.3 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9131/0.9131, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 92.23 kB / 0.6821 GB, free: 7.012 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3891, allocations: 86.99 MB / 0.767 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07485/0.464, allocations: 80.97 MB / 0.8461 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02873/0.4928, allocations: 21.05 MB / 0.8667 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003164/0.496, allocations: 107.4 kB / 0.8668 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.004797/0.5008, allocations: 1.958 MB / 0.8687 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.006792/0.5076, allocations: 2.953 MB / 0.8716 GB, free: 8.574 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.005367/0.513, allocations: 2.496 MB / 0.874 GB, free: 6.094 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01898/0.532, allocations: 18.44 MB / 0.892 GB, free: 3.613 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008767/0.5408, allocations: 7.233 MB / 0.8991 GB, free: 12.28 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0112/0.552, allocations: 5.951 MB / 0.9049 GB, free: 6.344 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008139/0.5602, allocations: 5.128 MB / 0.9099 GB, free: 1.195 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.002009/0.5622, allocations: 0.5469 MB / 0.9104 GB, free: 0.6484 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005681/0.5679, allocations: 1.978 MB / 0.9123 GB, free: 14.67 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.002738/0.5706, allocations: 1.76 MB / 0.9141 GB, free: 12.9 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.006148/0.5768, allocations: 3.48 MB / 0.9175 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01315/0.59, allocations: 9.679 MB / 0.9269 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.59, allocations: 3.938 kB / 0.9269 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.773e-06/0.59, allocations: 0 / 0.9269 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0002629/0.5903, allocations: 4 kB / 0.9269 GB, free: 15.69 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 838 * Number of variables: 838 Notification: Performance of Generate backend data structure: time 0.0143/0.6046, allocations: 6.913 MB / 0.9337 GB, free: 8.676 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.6046, allocations: 8.031 kB / 0.9337 GB, free: 8.668 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/0.6088, allocations: 0.945 MB / 0.9346 GB, free: 7.715 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.6196, allocations: 6.416 MB / 0.9409 GB, free: 1.223 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.6198, allocations: 262.6 kB / 0.9411 GB, free: 0.9648 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005691/0.6204, allocations: 339.9 kB / 0.9414 GB, free: 0.6328 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009075/0.6295, allocations: 5.735 MB / 0.947 GB, free: 10.65 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.953e-05/0.6295, allocations: 15.88 kB / 0.9471 GB, free: 10.63 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004184/0.63, allocations: 144 kB / 0.9472 GB, free: 10.49 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.454e-05/0.6301, allocations: 122 kB / 0.9473 GB, free: 10.37 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008817/0.6389, allocations: 5.562 MB / 0.9527 GB, free: 4.797 MB / 0.7169 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.3317/0.9706, allocations: 24.08 MB / 0.9763 GB, free: 162.1 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003916/0.9745, allocations: 2.756 MB / 0.9789 GB, free: 161 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002301/0.9768, allocations: 1.915 MB / 0.9808 GB, free: 160 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009236/0.9861, allocations: 7.167 MB / 0.9878 GB, free: 154.7 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002649/0.9888, allocations: 1.911 MB / 0.9897 GB, free: 153.6 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002937/0.9917, allocations: 0.7165 MB / 0.9904 GB, free: 153.3 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=154): time 5.139e-06/0.9917, allocations: 0 / 0.9904 GB, free: 153.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=154): time 0.02231/1.014, allocations: 8.035 MB / 0.9982 GB, free: 146.6 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/1.014, allocations: 64.72 kB / 0.9983 GB, free: 146.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006032/1.02, allocations: 5.6 MB / 1.004 GB, free: 141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0004396/1.021, allocations: 73.69 kB / 1.004 GB, free: 140.9 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001555/1.022, allocations: 2.592 MB / 1.006 GB, free: 138.3 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005331/1.023, allocations: 0.5581 MB / 1.007 GB, free: 137.8 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008936/1.024, allocations: 0.7713 MB / 1.008 GB, free: 137 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.281e-05/1.024, allocations: 309 kB / 1.008 GB, free: 136.7 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002461/1.026, allocations: 1.9 MB / 1.01 GB, free: 134.8 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002878/1.029, allocations: 3.158 MB / 1.013 GB, free: 131.1 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005399/1.034, allocations: 5.025 MB / 1.018 GB, free: 125.6 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.916e-05/1.034, allocations: 12 kB / 1.018 GB, free: 125.6 MB / 0.7169 GB Notification: Performance of matching and sorting (n=402) (initialization): time 0.01035/1.045, allocations: 6.795 MB / 1.024 GB, free: 118.8 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/1.045, allocations: 49.64 kB / 1.024 GB, free: 118.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/1.045, allocations: 32 kB / 1.025 GB, free: 118.7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07945/1.124, allocations: 13.55 MB / 1.038 GB, free: 105.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002788/1.127, allocations: 0.6981 MB / 1.038 GB, free: 104.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008326/1.136, allocations: 5.486 MB / 1.044 GB, free: 98.95 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004422/1.14, allocations: 239.9 kB / 1.044 GB, free: 98.71 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003774/1.14, allocations: 203.8 kB / 1.044 GB, free: 98.52 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004126/1.145, allocations: 3.273 MB / 1.047 GB, free: 95.23 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003366/1.148, allocations: 3.109 MB / 1.05 GB, free: 91.56 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005213/1.153, allocations: 4.925 MB / 1.055 GB, free: 86.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.501e-05/1.153, allocations: 8 kB / 1.055 GB, free: 86.15 MB / 0.7169 GB Notification: Performance of matching and sorting (n=402) (initialization_lambda0): time 0.009314/1.163, allocations: 6.519 MB / 1.062 GB, free: 79.6 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.683e-05/1.163, allocations: 45.7 kB / 1.062 GB, free: 79.55 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/1.163, allocations: 32 kB / 1.062 GB, free: 79.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07862/1.241, allocations: 13.31 MB / 1.075 GB, free: 66.24 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002794/1.244, allocations: 0.6954 MB / 1.075 GB, free: 65.55 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/1.255, allocations: 8.904 MB / 1.084 GB, free: 56.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004448/1.26, allocations: 248.2 kB / 1.084 GB, free: 56.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004197/1.26, allocations: 199.8 kB / 1.085 GB, free: 55.91 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (317): * Single equations (assignments): 311 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,15), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0007891/1.261, allocations: 383.6 kB / 1.085 GB, free: 55.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001601/1.262, allocations: 0.49 MB / 1.085 GB, free: 55.03 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/1.27, allocations: 4.586 MB / 1.09 GB, free: 50.43 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009469/1.28, allocations: 5.664 MB / 1.095 GB, free: 44.51 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/1.28, allocations: 3.938 kB / 1.095 GB, free: 44.51 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/1.282, allocations: 0.9789 MB / 1.096 GB, free: 43.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.283, allocations: 36 kB / 1.096 GB, free: 43.47 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003187/1.286, allocations: 143.8 kB / 1.096 GB, free: 43.33 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003627/1.287, allocations: 133.8 kB / 1.097 GB, free: 43.2 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01024/1.297, allocations: 4.786 MB / 1.101 GB, free: 38.41 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007982/1.305, allocations: 6.013 MB / 1.107 GB, free: 32.38 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002115/1.307, allocations: 1.862 MB / 1.109 GB, free: 30.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.004583/1.312, allocations: 3.824 MB / 1.113 GB, free: 26.72 MB / 0.7169 GB Notification: Performance of Backend: time 3.4e-07/1.312, allocations: 3.938 kB / 1.113 GB, free: 26.72 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.01809/1.33, allocations: 6.974 MB / 1.12 GB, free: 19.79 MB / 0.7169 GB Notification: Performance of SimCode: time 0.02061/1.35, allocations: 12.51 MB / 1.132 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of Templates: time 0.1785/1.529, allocations: 125.7 MB / 1.254 GB, free: 10.71 MB / 0.8419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)