Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.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.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 176.6 kB / 15.78 MB, free: 6.344 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.856/1.856, 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.0009007/0.0009007, allocations: 102.3 kB / 270.3 MB, free: 13.37 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.9312/0.9312, allocations: 90.6 MB / 409.1 MB, free: 14.97 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005534/0.0005533, allocations: 12 kB / 485.9 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6025/0.6031, allocations: 66.28 MB / 0.5392 GB, free: 45.75 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.3337/0.9368, allocations: 179.7 MB / 0.7147 GB, free: 7.844 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.01567/0.9526, allocations: 9.747 MB / 0.7243 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007807/0.9534, allocations: 11.94 kB / 0.7243 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0009453/0.9544, allocations: 302.2 kB / 0.7246 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.9589, allocations: 1.205 MB / 0.7257 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.003893/0.9628, allocations: 1.065 MB / 0.7268 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.004017/0.9668, allocations: 2.293 MB / 0.729 GB, free: 9.215 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.9671, allocations: 133.4 kB / 0.7291 GB, free: 9.082 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00265/0.9698, allocations: 1.462 MB / 0.7306 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006894/0.9705, allocations: 0.506 MB / 0.7311 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 6.539e-05/0.9705, allocations: 24 kB / 0.7311 GB, free: 7.086 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/0.9748, allocations: 1.631 MB / 0.7327 GB, free: 5.453 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.975, allocations: 107.5 kB / 0.7328 GB, free: 5.348 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.000222/0.9752, allocations: 137.4 kB / 0.7329 GB, free: 5.207 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.002214/0.9774, allocations: 1.251 MB / 0.7341 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.9774, allocations: 0 / 0.7341 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9774, allocations: 3.938 kB / 0.7341 GB, free: 3.949 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.9775, allocations: 0 / 0.7341 GB, free: 3.949 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002762/0.9802, allocations: 1.236 MB / 0.7353 GB, free: 2.652 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.9803, allocations: 8.031 kB / 0.7354 GB, free: 2.645 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009009/0.9812, allocations: 139.1 kB / 0.7355 GB, free: 2.508 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/0.9818, allocations: 412.8 kB / 0.7359 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.9818, allocations: 37 kB / 0.7359 GB, free: 2.027 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.982, allocations: 55.89 kB / 0.736 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00117/0.9831, allocations: 0.5958 MB / 0.7366 GB, free: 1.363 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.9832, allocations: 4 kB / 0.7366 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.9832, allocations: 20 kB / 0.7366 GB, free: 1.34 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.9833, allocations: 19.98 kB / 0.7366 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.9844, allocations: 496.1 kB / 0.7371 GB, free: 0.8359 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003649/0.9881, allocations: 2.563 MB / 0.7396 GB, free: 14.03 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.9892, allocations: 0.4891 MB / 0.74 GB, free: 13.52 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005676/0.9898, allocations: 279.1 kB / 0.7403 GB, free: 13.25 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00151/0.9913, allocations: 1.418 MB / 0.7417 GB, free: 11.61 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008145/0.9921, allocations: 436.5 kB / 0.7421 GB, free: 11.16 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=58): time 3.627e-06/0.9921, allocations: 0 / 0.7421 GB, free: 11.16 MB / 0.5574 GB Notification: Performance of matching and sorting (n=58): time 0.002674/0.9948, allocations: 1.123 MB / 0.7432 GB, free: 9.992 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.02e-05/0.9949, allocations: 93.05 kB / 0.7433 GB, free: 9.883 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004877/0.9954, allocations: 378 kB / 0.7437 GB, free: 9.508 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 7.147e-05/0.9955, allocations: 37.7 kB / 0.7437 GB, free: 9.465 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.9957, allocations: 260.9 kB / 0.7439 GB, free: 9.203 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.9959, allocations: 201.2 kB / 0.7441 GB, free: 9.004 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-05/0.9959, allocations: 8 kB / 0.7441 GB, free: 8.996 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.9961, allocations: 358.8 kB / 0.7445 GB, free: 8.637 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.9967, allocations: 229.1 kB / 0.7447 GB, free: 8.414 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006195/0.9973, allocations: 295.2 kB / 0.745 GB, free: 8.098 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006253/0.9979, allocations: 308.7 kB / 0.7453 GB, free: 7.785 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.998, allocations: 0 / 0.7453 GB, free: 7.785 MB / 0.5574 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00169/0.9997, allocations: 0.8217 MB / 0.7461 GB, free: 6.938 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 6.805e-05/0.9997, allocations: 63.39 kB / 0.7461 GB, free: 6.863 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.965e-05/0.9998, allocations: 15.98 kB / 0.7462 GB, free: 6.848 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/1, allocations: 77.56 kB / 0.7462 GB, free: 6.766 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/1.001, allocations: 137.8 kB / 0.7464 GB, free: 6.633 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/1.003, allocations: 2.839 MB / 0.7491 GB, free: 3.531 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005714/1.004, allocations: 79.55 kB / 0.7492 GB, free: 3.453 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/1.004, allocations: 67.98 kB / 0.7493 GB, free: 3.387 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.sawTooth.T_start,sawTooth.T_start,$PRE.sawTooth.count,sawTooth.count,$whenCondition1,$PRE.sawTooth1.T_start,sawTooth1.T_start,$PRE.sawTooth1.count,sawTooth1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 6 * 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.0003844/1.004, allocations: 181.5 kB / 0.7495 GB, free: 3.199 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/1.004, allocations: 55.3 kB / 0.7495 GB, free: 3.145 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002885/1.007, allocations: 0.9874 MB / 0.7505 GB, free: 2.152 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/1.007, allocations: 11.95 kB / 0.7505 GB, free: 2.141 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.007, allocations: 4 kB / 0.7505 GB, free: 2.137 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/1.007, allocations: 3.984 kB / 0.7505 GB, free: 2.133 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/1.011, allocations: 1.652 MB / 0.7521 GB, free: 420 kB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.17e-05/1.011, allocations: 15.98 kB / 0.7521 GB, free: 404 kB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004623/1.011, allocations: 115.9 kB / 0.7522 GB, free: 288 kB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002875/1.011, allocations: 89.64 kB / 0.7523 GB, free: 192 kB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-05/1.011, allocations: 35.98 kB / 0.7523 GB, free: 156 kB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.315/1.326, allocations: 2.826 MB / 0.7551 GB, free: 180.1 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.326, allocations: 0 / 0.7551 GB, free: 180.1 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002311/1.329, allocations: 1.222 MB / 0.7563 GB, free: 179.8 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/1.329, allocations: 212.8 kB / 0.7565 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/1.329, allocations: 16.27 kB / 0.7565 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004781/1.33, allocations: 46.5 kB / 0.7566 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/1.33, allocations: 96.06 kB / 0.7567 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/1.33, allocations: 74.95 kB / 0.7567 GB, free: 179.7 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0002724/1.33, allocations: 267.6 kB / 0.757 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.4e-07/1.33, allocations: 0 / 0.757 GB, free: 179.6 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.001518/1.332, allocations: 484.4 kB / 0.7574 GB, free: 179.6 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.inlet.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,sawTooth1.T_start,sawTooth1.count,$whenCondition2,sawTooth.T_start,sawTooth.count) * Number of discrete states: 2 (sawTooth.count,sawTooth1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001454/1.333, allocations: 0.7405 MB / 0.7582 GB, free: 179.5 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.001836/1.335, allocations: 1.115 MB / 0.7593 GB, free: 179 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.335, allocations: 0 / 0.7593 GB, free: 179 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/1.336, allocations: 0.7434 MB / 0.76 GB, free: 178.6 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/1.337, allocations: 175.8 kB / 0.7602 GB, free: 178.6 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/1.34, allocations: 1.648 MB / 0.7618 GB, free: 177.9 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/1.34, allocations: 0.8803 MB / 0.7626 GB, free: 177.1 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004275/1.341, allocations: 118.4 kB / 0.7627 GB, free: 177.1 MB / 0.5574 GB Notification: Performance of SimCode: time 5.61e-07/1.341, allocations: 4 kB / 0.7627 GB, free: 177.1 MB / 0.5574 GB [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 4 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 5 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 10 . [CodegenCppOld.tpl:12289:11-12289:11:writable] Error: Template error: UNKNOWN ZERO CROSSING for 11 .