Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") translateModel(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7063/0.7063, allocations: 128.7 MB / 144.5 MB, free: 1.383 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 186 kB / 174.2 MB, free: 5.941 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 408.9 MB, free: 9.699 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 94.34 kB / 485.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 52.8 kB / 0.558 GB, free: 97.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.14, allocations: 75.47 MB / 0.6317 GB, free: 33.07 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06381/0.2039, allocations: 82.8 MB / 0.7125 GB, free: 13.99 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.03226/0.2362, allocations: 22.78 MB / 0.7348 GB, free: 7.156 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004422/0.2407, allocations: 103.3 kB / 0.7349 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.003894/0.2446, allocations: 1.022 MB / 0.7359 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00755/0.2522, allocations: 2.559 MB / 0.7384 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.008985/0.2612, allocations: 3.172 MB / 0.7415 GB, free: 316 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.3058/0.567, allocations: 20.41 MB / 0.7614 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01031/0.5774, allocations: 6.052 MB / 0.7673 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01214/0.5896, allocations: 4.782 MB / 0.772 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009525/0.5992, allocations: 4.955 MB / 0.7768 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.002157/0.6014, allocations: 311.8 kB / 0.7771 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006543/0.6079, allocations: 1.681 MB / 0.7787 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002716/0.6107, allocations: 1.334 MB / 0.78 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.007014/0.6177, allocations: 2.964 MB / 0.7829 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01052/0.6283, allocations: 9.169 MB / 0.7919 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.6283, allocations: 0 / 0.7919 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.654e-06/0.6283, allocations: 0 / 0.7919 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002137/0.6285, allocations: 3.938 kB / 0.7919 GB, free: 8.457 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 0.01265/0.6412, allocations: 6.362 MB / 0.7981 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.6412, allocations: 8.031 kB / 0.7981 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003037/0.6443, allocations: 0.8221 MB / 0.7989 GB, free: 3.48 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007522/0.6518, allocations: 4.609 MB / 0.8034 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.652, allocations: 259.6 kB / 0.8037 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005307/0.6525, allocations: 339.8 kB / 0.804 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01172/0.6643, allocations: 6.276 MB / 0.8101 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-05/0.6643, allocations: 13.25 kB / 0.8101 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00038/0.6647, allocations: 146.2 kB / 0.8103 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.696e-05/0.6648, allocations: 84 kB / 0.8104 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.6772, allocations: 6.058 MB / 0.8163 GB, free: 6.176 MB / 0.5261 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.03697/0.7142, allocations: 23.64 MB / 0.8394 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007702/0.7219, allocations: 3.286 MB / 0.8426 GB, free: 11.66 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/0.7247, allocations: 1.876 MB / 0.8444 GB, free: 9.77 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01081/0.7355, allocations: 6.608 MB / 0.8509 GB, free: 2.906 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006108/0.7416, allocations: 2.478 MB / 0.8533 GB, free: 432 kB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004195/0.7458, allocations: 1.201 MB / 0.8545 GB, free: 15.22 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 8.256e-06/0.7459, allocations: 0 / 0.8545 GB, free: 15.22 MB / 0.573 GB Notification: Performance of matching and sorting (n=153): time 0.04017/0.786, allocations: 10.37 MB / 0.8646 GB, free: 4.797 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.043e-05/0.7862, allocations: 149.8 kB / 0.8647 GB, free: 4.617 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006574/0.7927, allocations: 4.754 MB / 0.8694 GB, free: 15.88 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004088/0.7932, allocations: 68.52 kB / 0.8694 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001948/0.7951, allocations: 2.457 MB / 0.8718 GB, free: 13.34 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000605/0.7957, allocations: 0.5543 MB / 0.8724 GB, free: 12.79 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009489/0.7967, allocations: 0.6062 MB / 0.873 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.568e-05/0.7968, allocations: 311.7 kB / 0.8733 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.7999, allocations: 1.847 MB / 0.8751 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004065/0.804, allocations: 3.054 MB / 0.878 GB, free: 6.418 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007545/0.8116, allocations: 4.857 MB / 0.8828 GB, free: 1.234 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.181e-05/0.8116, allocations: 8 kB / 0.8828 GB, free: 1.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.02533/0.8369, allocations: 8.264 MB / 0.8909 GB, free: 9.023 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.79e-05/0.837, allocations: 49.69 kB / 0.8909 GB, free: 8.969 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.465e-05/0.8371, allocations: 32.09 kB / 0.8909 GB, free: 8.938 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07063/0.9077, allocations: 12.34 MB / 0.903 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002995/0.9108, allocations: 0.6396 MB / 0.9036 GB, free: 12.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04452/0.9553, allocations: 15.79 MB / 0.919 GB, free: 11.97 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005441/0.9608, allocations: 389.5 kB / 0.9194 GB, free: 11.59 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007282/0.9616, allocations: 171.8 kB / 0.9196 GB, free: 11.42 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00571/0.9673, allocations: 2.909 MB / 0.9224 GB, free: 8.504 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003627/0.971, allocations: 2.821 MB / 0.9252 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.006012/0.977, allocations: 4.432 MB / 0.9295 GB, free: 244 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.95e-05/0.9771, allocations: 12 kB / 0.9295 GB, free: 232 kB / 0.6355 GB Notification: Performance of matching and sorting (n=339) (initialization_lambda0): time 0.009893/0.987, allocations: 5.747 MB / 0.9351 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 5.415e-05/0.987, allocations: 45.7 kB / 0.9352 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.877e-05/0.9871, allocations: 44.14 kB / 0.9352 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07015/1.057, allocations: 11.79 MB / 0.9467 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002966/1.06, allocations: 0.6357 MB / 0.9473 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/1.072, allocations: 8.041 MB / 0.9552 GB, free: 5.672 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004617/1.077, allocations: 303.8 kB / 0.9555 GB, free: 5.375 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005387/1.077, allocations: 159.9 kB / 0.9556 GB, free: 5.219 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (286): * Single equations (assignments): 279 * Array equations: 2 * 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,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.001138/1.078, allocations: 374.5 kB / 0.956 GB, free: 4.848 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001599/1.08, allocations: 462.3 kB / 0.9564 GB, free: 4.391 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02187/1.102, allocations: 6.747 MB / 0.963 GB, free: 13.63 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.554e-05/1.102, allocations: 16 kB / 0.963 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.102, allocations: 0 / 0.963 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03057/1.132, allocations: 8.583 MB / 0.9714 GB, free: 4.758 MB / 0.6823 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 postOpt removeSimpleEquations (simulation): time 0.04383/1.176, allocations: 14.68 MB / 0.9858 GB, free: 6.004 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.583e-05/1.176, allocations: 8 kB / 0.9858 GB, free: 5.996 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002435/1.179, allocations: 355.4 kB / 0.9861 GB, free: 5.648 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07136/1.25, allocations: 12.49 MB / 0.9983 GB, free: 9.203 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006425/1.251, allocations: 51.95 kB / 0.9983 GB, free: 9.152 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3/1.551, allocations: 14.01 MB / 1.012 GB, free: 287.3 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.551, allocations: 0.7969 kB / 1.012 GB, free: 287.3 MB / 0.7136 GB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.7137/2.265, allocations: 170.8 MB / 1.179 GB, free: 145.8 MB / 0.7136 GB Error: post-optimization module symbolicJacobian (simulation) failed.