Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) 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) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001373/0.001373, allocations: 171 kB / 15.77 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007426/0.0007425, allocations: 86.36 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8171/0.8171, allocations: 90.59 MB / 409.1 MB, free: 14.99 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 485.9 MB, free: 2.086 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4987/0.4991, allocations: 66.27 MB / 0.5392 GB, free: 45.57 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.2285/0.7277, allocations: 183.1 MB / 0.718 GB, free: 4.488 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.01091/0.7386, allocations: 7.733 MB / 0.7256 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.7397, allocations: 11.94 kB / 0.7256 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.7408, allocations: 330 kB / 0.7259 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.7459, allocations: 1.351 MB / 0.7272 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.00452/0.7505, allocations: 1.321 MB / 0.7285 GB, free: 9.75 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.004343/0.7548, allocations: 2.672 MB / 0.7311 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.7552, allocations: 179.9 kB / 0.7313 GB, free: 6.891 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003148/0.7584, allocations: 1.66 MB / 0.7329 GB, free: 5.227 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.7594, allocations: 0.6267 MB / 0.7335 GB, free: 4.598 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 9.152e-05/0.7595, allocations: 32 kB / 0.7336 GB, free: 4.566 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004855/0.7644, allocations: 1.864 MB / 0.7354 GB, free: 2.699 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.7646, allocations: 135.4 kB / 0.7355 GB, free: 2.566 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0003666/0.765, allocations: 173.3 kB / 0.7357 GB, free: 2.391 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.003085/0.7681, allocations: 1.528 MB / 0.7372 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.7681, allocations: 3.938 kB / 0.7372 GB, free: 0.8555 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.555e-06/0.7681, allocations: 0 / 0.7372 GB, free: 0.8555 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.162e-05/0.7681, allocations: 4 kB / 0.7372 GB, free: 0.8516 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003715/0.7718, allocations: 1.493 MB / 0.7386 GB, free: 15.29 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.7719, allocations: 8.031 kB / 0.7386 GB, free: 15.29 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.773, allocations: 170.8 kB / 0.7388 GB, free: 15.12 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007676/0.7738, allocations: 480.5 kB / 0.7393 GB, free: 14.61 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.7739, allocations: 82.94 kB / 0.7393 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.774, allocations: 63.94 kB / 0.7394 GB, free: 14.46 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.7757, allocations: 0.8365 MB / 0.7402 GB, free: 13.61 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.7757, allocations: 0 / 0.7402 GB, free: 13.61 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.151e-05/0.7758, allocations: 24 kB / 0.7402 GB, free: 13.58 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.7758, allocations: 19.98 kB / 0.7403 GB, free: 13.56 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.7777, allocations: 0.7634 MB / 0.741 GB, free: 12.8 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004971/0.7827, allocations: 3.63 MB / 0.7446 GB, free: 8.828 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00207/0.7848, allocations: 0.808 MB / 0.7453 GB, free: 8.004 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009627/0.7858, allocations: 421.9 kB / 0.7457 GB, free: 7.586 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002262/0.788, allocations: 1.674 MB / 0.7474 GB, free: 5.652 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.7893, allocations: 0.5892 MB / 0.748 GB, free: 5.047 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=76): time 4.047e-06/0.7893, allocations: 0 / 0.748 GB, free: 5.047 MB / 0.5574 GB Notification: Performance of matching and sorting (n=76): time 0.003966/0.7933, allocations: 1.554 MB / 0.7495 GB, free: 3.449 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.7934, allocations: 101 kB / 0.7496 GB, free: 3.332 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006044/0.794, allocations: 462.8 kB / 0.75 GB, free: 2.871 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 8.51e-05/0.7941, allocations: 37.7 kB / 0.75 GB, free: 2.828 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.7943, allocations: 312.5 kB / 0.7503 GB, free: 2.516 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.7946, allocations: 256.3 kB / 0.7506 GB, free: 2.262 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.497e-05/0.7946, allocations: 16 kB / 0.7506 GB, free: 2.246 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001645/0.7948, allocations: 374.8 kB / 0.751 GB, free: 1.871 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009069/0.7957, allocations: 357.8 kB / 0.7513 GB, free: 1.523 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009882/0.7967, allocations: 457.9 kB / 0.7517 GB, free: 1.047 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000994/0.7977, allocations: 437.1 kB / 0.7522 GB, free: 0.6055 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.7977, allocations: 7.938 kB / 0.7522 GB, free: 0.5977 MB / 0.5574 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.3054/1.103, allocations: 1.131 MB / 0.7533 GB, free: 182.4 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/1.103, allocations: 63.08 kB / 0.7533 GB, free: 182.4 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.933e-05/1.103, allocations: 10.52 kB / 0.7533 GB, free: 182.4 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004176/1.104, allocations: 88.58 kB / 0.7534 GB, free: 182.4 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/1.105, allocations: 204 kB / 0.7536 GB, free: 182.4 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/1.107, allocations: 2.839 MB / 0.7564 GB, free: 179.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008085/1.107, allocations: 116.9 kB / 0.7565 GB, free: 179.9 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/1.108, allocations: 96.53 kB / 0.7566 GB, free: 179.9 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,$whenCondition1,$PRE.trapezoid1.T_start,trapezoid1.T_start,$PRE.trapezoid1.count,trapezoid1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003383/1.108, allocations: 195.5 kB / 0.7568 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/1.108, allocations: 68.58 kB / 0.7568 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/1.111, allocations: 1.397 MB / 0.7582 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/1.112, allocations: 10 kB / 0.7582 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/1.112, allocations: 0 / 0.7582 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/1.112, allocations: 8.469 kB / 0.7582 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003706/1.115, allocations: 2.146 MB / 0.7603 GB, free: 179.2 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.877e-05/1.115, allocations: 5.656 kB / 0.7603 GB, free: 179.2 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006721/1.116, allocations: 194.4 kB / 0.7605 GB, free: 179.2 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003027/1.116, allocations: 82.08 kB / 0.7606 GB, free: 179.2 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.447e-05/1.116, allocations: 55.55 kB / 0.7606 GB, free: 179.2 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/1.118, allocations: 2.841 MB / 0.7634 GB, free: 176.7 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.118, allocations: 3.281 kB / 0.7634 GB, free: 176.7 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003618/1.122, allocations: 1.695 MB / 0.7651 GB, free: 176.3 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003932/1.122, allocations: 251.1 kB / 0.7653 GB, free: 176.2 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/1.122, allocations: 19.08 kB / 0.7653 GB, free: 176.2 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006551/1.123, allocations: 90.95 kB / 0.7654 GB, free: 176.2 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/1.123, allocations: 118.5 kB / 0.7655 GB, free: 176.2 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/1.123, allocations: 94.83 kB / 0.7656 GB, free: 176.2 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0003795/1.124, allocations: 317.6 kB / 0.7659 GB, free: 176.1 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.21e-07/1.124, allocations: 0 / 0.7659 GB, free: 176.1 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.001718/1.125, allocations: 0.5577 MB / 0.7665 GB, free: 176.1 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (transportDelay1.x,flowResistance1.rear.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,trapezoid1.T_start,trapezoid1.count,$whenCondition2,trapezoid.T_start,trapezoid.count) * Number of discrete states: 2 (trapezoid.count,trapezoid1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001573/1.127, allocations: 0.8202 MB / 0.7673 GB, free: 176 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.00262/1.13, allocations: 1.441 MB / 0.7687 GB, free: 175.4 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.13, allocations: 2.062 kB / 0.7687 GB, free: 175.4 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.001397/1.131, allocations: 0.9523 MB / 0.7696 GB, free: 174.9 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/1.132, allocations: 219.7 kB / 0.7698 GB, free: 174.9 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003317/1.136, allocations: 1.993 MB / 0.7718 GB, free: 173.7 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/1.136, allocations: 0.9338 MB / 0.7727 GB, free: 173 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006888/1.137, allocations: 181.3 kB / 0.7729 GB, free: 173 MB / 0.5574 GB Notification: Performance of SimCode: time 8.01e-07/1.137, allocations: 0 / 0.7729 GB, free: 173 MB / 0.5574 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 7 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 8 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 17 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 18 .