Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe.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.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008215/0.0008215, allocations: 102.6 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007851/0.0007853, allocations: 172.4 kB / 16.58 MB, free: 6.398 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.296/1.296, allocations: 223.3 MB / 240.6 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.91/0.91, allocations: 135.3 MB / 427 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003153, allocations: 20.38 kB / 0.5076 GB, free: 5.113 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1604, allocations: 82.3 MB / 0.588 GB, free: 2.977 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.4219/0.5824, allocations: 106.3 MB / 0.6918 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0401/0.6225, allocations: 24.86 MB / 0.7161 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005959/0.6285, allocations: 99.56 kB / 0.7162 GB, free: 15.07 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004031/0.6326, allocations: 0.7894 MB / 0.717 GB, free: 14.64 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01114/0.6438, allocations: 2.729 MB / 0.7196 GB, free: 13.08 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006763/0.6506, allocations: 1.664 MB / 0.7213 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01163/0.6622, allocations: 7.004 MB / 0.7281 GB, free: 8.348 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00338/0.6656, allocations: 1.427 MB / 0.7295 GB, free: 7.461 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006824/0.6725, allocations: 2.124 MB / 0.7316 GB, free: 6.289 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004321/0.6769, allocations: 1.619 MB / 0.7332 GB, free: 5.34 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006456/0.6775, allocations: 92.12 kB / 0.7332 GB, free: 5.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00648/0.684, allocations: 1.558 MB / 0.7348 GB, free: 4.535 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0006852/0.6847, allocations: 392.5 kB / 0.7351 GB, free: 4.23 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00174/0.6865, allocations: 487 kB / 0.7356 GB, free: 3.977 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005364/0.6918, allocations: 2.859 MB / 0.7384 GB, free: 2.074 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.6919, allocations: 4 kB / 0.7384 GB, free: 2.07 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.864e-06/0.6919, allocations: 0 / 0.7384 GB, free: 2.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.613e-05/0.692, allocations: 0 / 0.7384 GB, free: 2.07 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 343 * Number of variables: 343 Notification: Performance of Generate backend data structure: time 0.004896/0.6969, allocations: 2.446 MB / 0.7408 GB, free: 112 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.6969, allocations: 15.97 kB / 0.7408 GB, free: 96 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005811/0.6975, allocations: 261 kB / 0.741 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004047/0.7016, allocations: 2.034 MB / 0.743 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/0.7017, allocations: 102.7 kB / 0.7431 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.7018, allocations: 136 kB / 0.7433 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.7043, allocations: 1.45 MB / 0.7447 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.7043, allocations: 0 / 0.7447 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.7045, allocations: 59.95 kB / 0.7447 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.077e-05/0.7045, allocations: 43.98 kB / 0.7448 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.7063, allocations: 1.021 MB / 0.7458 GB, free: 10.86 MB / 0.5606 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.009513/0.7159, allocations: 8.133 MB / 0.7537 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.7173, allocations: 0.8516 MB / 0.7545 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.7179, allocations: 377.8 kB / 0.7549 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002386/0.7203, allocations: 2.803 MB / 0.7576 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.7204, allocations: 47.2 kB / 0.7577 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 3.186e-06/0.7204, allocations: 0 / 0.7577 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.002367/0.7227, allocations: 1.136 MB / 0.7588 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.7228, allocations: 60.06 kB / 0.7589 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/0.725, allocations: 1.586 MB / 0.7604 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.259e-05/0.7251, allocations: 41.7 kB / 0.7604 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/0.7258, allocations: 0.9315 MB / 0.7614 GB, free: 9.473 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.7261, allocations: 311.5 kB / 0.7617 GB, free: 9.164 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.7262, allocations: 20 kB / 0.7617 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.7263, allocations: 357.9 kB / 0.762 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005464/0.7269, allocations: 314.4 kB / 0.7623 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007865/0.7277, allocations: 0.6994 MB / 0.763 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006996/0.7284, allocations: 442.7 kB / 0.7634 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.7284, allocations: 4 kB / 0.7634 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002109/0.7305, allocations: 1.245 MB / 0.7646 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002825/0.7308, allocations: 437.3 kB / 0.7651 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.711e-05/0.7308, allocations: 23.98 kB / 0.7651 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.874e-05/0.7309, allocations: 20 kB / 0.7651 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008022/0.7317, allocations: 259.5 kB / 0.7653 GB, free: 5.039 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.7317, allocations: 27.94 kB / 0.7654 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.733, allocations: 182.6 kB / 0.7655 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.7331, allocations: 71.97 kB / 0.7656 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.7331, allocations: 11.89 kB / 0.7656 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001678/0.7348, allocations: 1.043 MB / 0.7666 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.7348, allocations: 19.98 kB / 0.7667 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.7349, allocations: 24.03 kB / 0.7667 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007344/0.7356, allocations: 259.6 kB / 0.7669 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.043e-05/0.7356, allocations: 27.86 kB / 0.767 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.7367, allocations: 162.9 kB / 0.7671 GB, free: 3.223 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.792e-05/0.7368, allocations: 67.97 kB / 0.7672 GB, free: 3.156 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008188/0.7376, allocations: 468.7 kB / 0.7676 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.7379, allocations: 201.5 kB / 0.7678 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.7408, allocations: 1.745 MB / 0.7695 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.184e-05/0.7409, allocations: 19.98 kB / 0.7695 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.7409, allocations: 4 kB / 0.7695 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001669/0.7426, allocations: 1.146 MB / 0.7707 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005378/0.748, allocations: 3.474 MB / 0.7741 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.412e-05/0.748, allocations: 15.92 kB / 0.7741 GB, free: 11.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.7487, allocations: 200.5 kB / 0.7743 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-05/0.7487, allocations: 15.98 kB / 0.7743 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.245e-05/0.7488, allocations: 43.98 kB / 0.7743 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.408e-05/0.7488, allocations: 16 kB / 0.7743 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/0.7488, allocations: 12.44 kB / 0.7743 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.7519, allocations: 2.238 MB / 0.7765 GB, free: 9.281 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008392/0.7528, allocations: 473.9 kB / 0.777 GB, free: 8.797 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003315/0.7531, allocations: 28 kB / 0.777 GB, free: 8.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.7542, allocations: 103.8 kB / 0.7771 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.7544, allocations: 116.7 kB / 0.7772 GB, free: 8.551 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.7545, allocations: 63.97 kB / 0.7773 GB, free: 8.488 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001625/0.7562, allocations: 1.06 MB / 0.7783 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.91e-07/0.7562, allocations: 0 / 0.7783 GB, free: 7.406 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003184/0.7594, allocations: 1.119 MB / 0.7794 GB, free: 6.285 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 6 (pip.del.x,pip.timDel.x,pip.vol_b.dynBal.U,pip.vol_a.dynBal.U,pipNoMix.del.x,pipNoMix.timDel.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 27 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001387/0.7608, allocations: 0.7513 MB / 0.7801 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002888/0.7637, allocations: 1.8 MB / 0.7819 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.7637, allocations: 4 kB / 0.7819 GB, free: 3.68 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.7648, allocations: 0.8231 MB / 0.7827 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00394/0.7688, allocations: 0.9267 MB / 0.7836 GB, free: 1.914 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/0.7749, allocations: 4.427 MB / 0.7879 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.776, allocations: 1.432 MB / 0.7893 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005557/0.7766, allocations: 199.3 kB / 0.7895 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of SimCode: time 2.685e-06/0.7766, allocations: 0 / 0.7895 GB, free: 11.71 MB / 0.6075 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 0 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 2 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 3 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 5 .