Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe") translateModel(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.0009351/0.0009351, allocations: 99.91 kB / 15.71 MB, free: 452 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.0009724/0.0009728, allocations: 176.2 kB / 16.58 MB, free: 6.422 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.425/1.425, allocations: 223.2 MB / 240.6 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7496/0.7496, allocations: 132.3 MB / 424 MB, free: 2.102 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 8 kB / 0.504 GB, free: 4.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5553/0.5557, allocations: 81.58 MB / 0.5837 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.PlugFlowPipe): time 0.1098/0.6656, allocations: 106.4 MB / 0.6875 GB, free: 6.031 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03697/0.7026, allocations: 24.87 MB / 0.7118 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005691/0.7083, allocations: 99.38 kB / 0.7119 GB, free: 13 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003699/0.7121, allocations: 0.7839 MB / 0.7127 GB, free: 12.21 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01043/0.7225, allocations: 2.738 MB / 0.7154 GB, free: 9.461 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006794/0.7293, allocations: 1.653 MB / 0.717 GB, free: 7.82 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01055/0.7399, allocations: 7.005 MB / 0.7238 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003991/0.7439, allocations: 1.422 MB / 0.7252 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006787/0.7507, allocations: 2.127 MB / 0.7273 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004541/0.7553, allocations: 1.618 MB / 0.7289 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000975/0.7563, allocations: 92 kB / 0.7289 GB, free: 11.49 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00604/0.7624, allocations: 1.567 MB / 0.7305 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.7635, allocations: 386.1 kB / 0.7308 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.7652, allocations: 492.5 kB / 0.7313 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005729/0.7709, allocations: 2.864 MB / 0.7341 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.771, allocations: 0 / 0.7341 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.254e-06/0.771, allocations: 0 / 0.7341 GB, free: 6.188 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001371/0.7711, allocations: 0 / 0.7341 GB, free: 6.188 MB / 0.5606 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.006511/0.7776, allocations: 2.449 MB / 0.7365 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.7777, allocations: 11.97 kB / 0.7365 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008836/0.7786, allocations: 257 kB / 0.7368 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004526/0.7831, allocations: 2.034 MB / 0.7387 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.51e-05/0.7832, allocations: 102.7 kB / 0.7388 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/0.7834, allocations: 132 kB / 0.739 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002556/0.786, allocations: 1.454 MB / 0.7404 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.586e-05/0.786, allocations: 4 kB / 0.7404 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/0.7862, allocations: 52 kB / 0.7404 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.866e-05/0.7862, allocations: 36 kB / 0.7405 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001834/0.7881, allocations: 1.029 MB / 0.7415 GB, free: 14.44 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.009628/0.7977, allocations: 8.136 MB / 0.7494 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.7992, allocations: 0.829 MB / 0.7502 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006217/0.7999, allocations: 380.5 kB / 0.7506 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002548/0.8024, allocations: 2.803 MB / 0.7533 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.8025, allocations: 43.22 kB / 0.7534 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=85): time 4.298e-06/0.8025, allocations: 4 kB / 0.7534 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85): time 0.002584/0.8051, allocations: 1.132 MB / 0.7545 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.8052, allocations: 68 kB / 0.7545 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/0.8076, allocations: 1.586 MB / 0.7561 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.8077, allocations: 41.7 kB / 0.7561 GB, free: 14 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009824/0.8087, allocations: 0.9315 MB / 0.757 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.8091, allocations: 307.5 kB / 0.7573 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.368e-05/0.8092, allocations: 24 kB / 0.7574 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.8093, allocations: 345.9 kB / 0.7577 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005956/0.8099, allocations: 326.4 kB / 0.758 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009353/0.8109, allocations: 0.6994 MB / 0.7587 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008016/0.8117, allocations: 442.7 kB / 0.7591 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.367e-06/0.8117, allocations: 4 kB / 0.7591 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002368/0.8141, allocations: 1.242 MB / 0.7603 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003645/0.8145, allocations: 452.6 kB / 0.7608 GB, free: 8.914 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.61e-05/0.8145, allocations: 16 kB / 0.7608 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.872e-05/0.8146, allocations: 20 kB / 0.7608 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00083/0.8154, allocations: 267.6 kB / 0.761 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.901e-05/0.8154, allocations: 23.92 kB / 0.7611 GB, free: 8.594 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.817, allocations: 182.6 kB / 0.7612 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.8172, allocations: 67.91 kB / 0.7613 GB, free: 8.348 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.8172, allocations: 9.969 kB / 0.7613 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001895/0.8191, allocations: 1.054 MB / 0.7623 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.657e-05/0.8191, allocations: 16 kB / 0.7624 GB, free: 7.266 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.8191, allocations: 20 kB / 0.7624 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/0.82, allocations: 263.5 kB / 0.7626 GB, free: 6.988 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.541e-05/0.82, allocations: 23.92 kB / 0.7627 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.8217, allocations: 167.1 kB / 0.7628 GB, free: 6.801 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.8218, allocations: 63.98 kB / 0.7629 GB, free: 6.738 MB / 0.5919 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.001154/0.823, allocations: 480.7 kB / 0.7633 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004814/0.8234, allocations: 197.6 kB / 0.7635 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/0.8267, allocations: 1.739 MB / 0.7652 GB, free: 4.344 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-05/0.8268, allocations: 23.97 kB / 0.7652 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.8268, allocations: 8 kB / 0.7652 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001757/0.8286, allocations: 1.138 MB / 0.7664 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00716/0.8357, allocations: 3.487 MB / 0.7698 GB, free: 15.49 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.244e-05/0.8358, allocations: 8 kB / 0.7698 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007418/0.8366, allocations: 203.7 kB / 0.77 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.242e-05/0.8366, allocations: 12 kB / 0.77 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.054e-05/0.8367, allocations: 39.98 kB / 0.77 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-05/0.8368, allocations: 15.98 kB / 0.77 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.8368, allocations: 11.94 kB / 0.77 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004046/0.8408, allocations: 2.23 MB / 0.7722 GB, free: 12.87 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.8419, allocations: 477.8 kB / 0.7727 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.8421, allocations: 32 kB / 0.7727 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000907/0.843, allocations: 99.83 kB / 0.7728 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.8432, allocations: 112.8 kB / 0.7729 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.8433, allocations: 63.95 kB / 0.773 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001726/0.8451, allocations: 1.06 MB / 0.774 GB, free: 11 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.8451, allocations: 0 / 0.774 GB, free: 11 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003074/0.8482, allocations: 1.119 MB / 0.7751 GB, free: 9.879 MB / 0.6075 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.00163/0.8498, allocations: 0.7602 MB / 0.7758 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003478/0.8533, allocations: 1.801 MB / 0.7776 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.8533, allocations: 0 / 0.7776 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.8546, allocations: 0.8215 MB / 0.7784 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004779/0.8594, allocations: 0.9213 MB / 0.7793 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007169/0.8666, allocations: 4.439 MB / 0.7836 GB, free: 0.9727 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.868, allocations: 1.428 MB / 0.785 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/0.8688, allocations: 195.3 kB / 0.7852 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of SimCode: time 1.493e-06/0.8688, allocations: 0 / 0.7852 GB, free: 15.32 MB / 0.6231 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 .