Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.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.Examples.VenturiPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink2_1.inlet.m_flow|source2_2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump") translateModel(ThermofluidStream.Examples.VenturiPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink2_1.inlet.m_flow|source2_2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008666/0.0008667, allocations: 175.5 kB / 16.11 MB, free: 5.684 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.189/1.189, allocations: 205 MB / 221.9 MB, free: 9.133 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.0006895/0.0006895, allocations: 86.36 kB / 269.9 MB, free: 8.664 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.615/0.615, allocations: 90.52 MB / 408.3 MB, free: 3.93 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002836, allocations: 8 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2285, allocations: 65.81 MB / 0.5377 GB, free: 34.96 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.VenturiPump): time 0.07494/0.3034, allocations: 99.51 MB / 0.6349 GB, free: 3.172 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.03364/0.3371, allocations: 34.38 MB / 0.6685 GB, free: 0.6797 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.3382, allocations: 15.94 kB / 0.6685 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.3407, allocations: 0.96 MB / 0.6695 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.003826/0.3445, allocations: 1.556 MB / 0.671 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.01432/0.3589, allocations: 5.275 MB / 0.6761 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002293/0.3612, allocations: 2.45 MB / 0.6785 GB, free: 6.402 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.3618, allocations: 481.8 kB / 0.679 GB, free: 5.914 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00658/0.3684, allocations: 3.81 MB / 0.6827 GB, free: 2.047 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007558/0.3691, allocations: 0.7621 MB / 0.6834 GB, free: 1.281 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.3692, allocations: 48 kB / 0.6835 GB, free: 1.234 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2316/0.6008, allocations: 8.684 MB / 0.692 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003122/0.6012, allocations: 213.2 kB / 0.6922 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0006887/0.6019, allocations: 0.6492 MB / 0.6928 GB, free: 13.22 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01157/0.6134, allocations: 6.483 MB / 0.6991 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6135, allocations: 1.031 kB / 0.6991 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6135, allocations: 6.172 kB / 0.6991 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.379e-05/0.6135, allocations: 0 / 0.6991 GB, free: 13.12 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.005291/0.6188, allocations: 2.34 MB / 0.7014 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.6188, allocations: 8.156 kB / 0.7014 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/0.6199, allocations: 270.1 kB / 0.7017 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007389/0.6206, allocations: 0.7013 MB / 0.7024 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.787e-05/0.6207, allocations: 95.41 kB / 0.7025 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/0.6208, allocations: 124.5 kB / 0.7026 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.6236, allocations: 1.546 MB / 0.7041 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.685e-05/0.6236, allocations: 0.8125 kB / 0.7041 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.662e-05/0.6237, allocations: 53.69 kB / 0.7042 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.585e-05/0.6238, allocations: 48.05 kB / 0.7042 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002354/0.6261, allocations: 1.306 MB / 0.7055 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005034/0.6312, allocations: 6.979 MB / 0.7123 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001958/0.6331, allocations: 1.046 MB / 0.7133 GB, free: 6.859 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006548/0.6338, allocations: 0.5431 MB / 0.7138 GB, free: 6.844 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05863/0.6924, allocations: 36.6 MB / 0.7496 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.6925, allocations: 45.09 kB / 0.7496 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=95): time 3.326e-06/0.6925, allocations: 0 / 0.7496 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96): time 0.006617/0.6992, allocations: 3.398 MB / 0.7529 GB, free: 9.75 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.6992, allocations: 64.08 kB / 0.753 GB, free: 9.684 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005114/0.6997, allocations: 0.5721 MB / 0.7536 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.6998, allocations: 38.05 kB / 0.7536 GB, free: 9.453 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.7, allocations: 0.4991 MB / 0.7541 GB, free: 9.156 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.7001, allocations: 327.1 kB / 0.7544 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.463e-05/0.7002, allocations: 16.72 kB / 0.7544 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.7003, allocations: 396.2 kB / 0.7548 GB, free: 8.574 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.7008, allocations: 355 kB / 0.7551 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.7014, allocations: 470.8 kB / 0.7556 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.7026, allocations: 0.8936 MB / 0.7565 GB, free: 8.258 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.7026, allocations: 1.656 kB / 0.7565 GB, free: 8.258 MB / 0.5261 GB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001748/0.7044, allocations: 1.162 MB / 0.7576 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.7044, allocations: 4 kB / 0.7576 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.7044, allocations: 4 kB / 0.7576 GB, free: 7.707 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004312/0.7049, allocations: 172.3 kB / 0.7578 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005777/0.7055, allocations: 148.4 kB / 0.7579 GB, free: 7.445 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002689/0.7082, allocations: 2.475 MB / 0.7603 GB, free: 5.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.7087, allocations: 76.59 kB / 0.7604 GB, free: 5.328 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.252e-05/0.7088, allocations: 39.86 kB / 0.7604 GB, free: 5.297 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 10 (singleFlowSensor.outlet.state.phase,singleFlowSensor8.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,dynamicJunctionN2_1.dynamicPressureInflow.outlet.state.phase,dynamicJunctionN2_1.junction.outlet.state.phase,checkValve.outlet.state.phase,flowResistance1.outlet.state.phase,flowResistance.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004042/0.7092, allocations: 279 kB / 0.7607 GB, free: 5.113 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.7094, allocations: 90.91 kB / 0.7608 GB, free: 5.023 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003453/0.7128, allocations: 2.796 MB / 0.7635 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.7129, allocations: 8.062 kB / 0.7635 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.7129, allocations: 3.984 kB / 0.7635 GB, free: 3.289 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.7131, allocations: 195.3 kB / 0.7637 GB, free: 3.082 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.7132, allocations: 19.5 kB / 0.7637 GB, free: 3.074 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/0.7137, allocations: 79.78 kB / 0.7638 GB, free: 3.012 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.7138, allocations: 80.25 kB / 0.7639 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002959/0.7168, allocations: 1.851 MB / 0.7657 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00302/0.7198, allocations: 2.598 MB / 0.7682 GB, free: 60 kB / 0.5261 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0008419/0.7207, allocations: 0.77 MB / 0.769 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004054/0.7211, allocations: 398.9 kB / 0.7694 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of Backend: time 4.9e-07/0.7211, allocations: 0 / 0.7694 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009038/0.7302, allocations: 3.068 MB / 0.7724 GB, free: 12.78 MB / 0.5417 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor8.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor8.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor.quantity) Notification: Performance of SimCode: time 0.003868/0.734, allocations: 3.462 MB / 0.7757 GB, free: 9.449 MB / 0.5417 GB Notification: Performance of Templates: time 0.07661/0.8107, allocations: 62.28 MB / 0.8366 GB, free: 11.64 MB / 0.6042 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.VenturiPump.pipe 2>&1)