Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008821/0.0008822, allocations: 170.5 kB / 16.11 MB, free: 5.691 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.175/1.175, 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.0007042/0.0007043, allocations: 86.36 kB / 269.9 MB, free: 8.672 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.5942/0.5942, 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.0002785/0.0002785, allocations: 8.219 kB / 484.9 MB, free: 7.203 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2214/0.2217, allocations: 65.8 MB / 0.5378 GB, free: 34.91 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.03491/0.2566, allocations: 52.33 MB / 0.5889 GB, free: 2.496 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01924/0.2759, allocations: 21.16 MB / 0.6095 GB, free: 13.27 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001257/0.2772, allocations: 31.81 kB / 0.6096 GB, free: 13.23 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.279, allocations: 0.7577 MB / 0.6103 GB, free: 12.47 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.2822, allocations: 1.402 MB / 0.6117 GB, free: 11.06 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00272/0.2849, allocations: 1.17 MB / 0.6128 GB, free: 9.891 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002235/0.2872, allocations: 2.607 MB / 0.6154 GB, free: 7.273 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004873/0.2877, allocations: 404.4 kB / 0.6157 GB, free: 6.855 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009919/0.2887, allocations: 0.7543 MB / 0.6165 GB, free: 6.098 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007051/0.2894, allocations: 0.7735 MB / 0.6172 GB, free: 5.32 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.2895, allocations: 56 kB / 0.6173 GB, free: 5.266 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002759/0.2923, allocations: 1.248 MB / 0.6185 GB, free: 4.016 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.2925, allocations: 230.7 kB / 0.6187 GB, free: 3.789 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005436/0.293, allocations: 0.6874 MB / 0.6194 GB, free: 3.098 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002855/0.2959, allocations: 2.286 MB / 0.6216 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2959, allocations: 0 / 0.6216 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2959, allocations: 0 / 0.6216 GB, free: 0.8047 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.2959, allocations: 0 / 0.6216 GB, free: 0.8047 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.002707/0.2987, allocations: 1.699 MB / 0.6233 GB, free: 15.05 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.2987, allocations: 12.02 kB / 0.6233 GB, free: 15.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.299, allocations: 167 kB / 0.6235 GB, free: 14.88 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009116/0.2999, allocations: 0.7757 MB / 0.6242 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.3, allocations: 86.69 kB / 0.6243 GB, free: 13.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3001, allocations: 116.4 kB / 0.6244 GB, free: 13.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/0.3018, allocations: 1.112 MB / 0.6255 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.3018, allocations: 4 kB / 0.6255 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.501e-05/0.3019, allocations: 44 kB / 0.6255 GB, free: 12.67 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.3019, allocations: 28 kB / 0.6256 GB, free: 12.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.3037, allocations: 1.18 MB / 0.6267 GB, free: 11.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005055/0.3088, allocations: 5.005 MB / 0.6316 GB, free: 5.945 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/0.3103, allocations: 1.088 MB / 0.6327 GB, free: 4.836 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000706/0.311, allocations: 0.5217 MB / 0.6332 GB, free: 4.316 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004069/0.3151, allocations: 5.189 MB / 0.6382 GB, free: 14.27 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.3151, allocations: 43.56 kB / 0.6383 GB, free: 14.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=109): time 2.875e-06/0.3151, allocations: 0 / 0.6383 GB, free: 14.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=109): time 0.003196/0.3183, allocations: 1.774 MB / 0.64 GB, free: 12.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.3184, allocations: 64.34 kB / 0.6401 GB, free: 12.3 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveEqualPercentage.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveEqualPercentage.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveEqualPercentage.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveParabolic.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveParabolic.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000912/0.3193, allocations: 0.8304 MB / 0.6409 GB, free: 11.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.205e-05/0.3194, allocations: 45.7 kB / 0.6409 GB, free: 11.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000319/0.3197, allocations: 0.5703 MB / 0.6415 GB, free: 10.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002214/0.3199, allocations: 374.5 kB / 0.6419 GB, free: 10.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.32, allocations: 20 kB / 0.6419 GB, free: 10.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3201, allocations: 353.9 kB / 0.6422 GB, free: 10.08 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/0.3207, allocations: 342.2 kB / 0.6425 GB, free: 9.742 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006745/0.3214, allocations: 465.3 kB / 0.643 GB, free: 9.258 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/0.3227, allocations: 0.8363 MB / 0.6438 GB, free: 8.391 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3227, allocations: 4 kB / 0.6438 GB, free: 8.387 MB / 474.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002027/0.3247, allocations: 1.197 MB / 0.645 GB, free: 7.172 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3247, allocations: 8 kB / 0.645 GB, free: 7.164 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.3248, allocations: 3.938 kB / 0.645 GB, free: 7.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005129/0.3253, allocations: 158.5 kB / 0.6451 GB, free: 6.996 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006852/0.326, allocations: 199.7 kB / 0.6453 GB, free: 6.801 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.3292, allocations: 4.478 MB / 0.6497 GB, free: 1.918 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006587/0.3299, allocations: 111.1 kB / 0.6498 GB, free: 1.809 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.654e-05/0.33, allocations: 43.98 kB / 0.6498 GB, free: 1.766 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (112): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003718/0.3303, allocations: 251.5 kB / 0.6501 GB, free: 1.512 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000187/0.3305, allocations: 122.4 kB / 0.6502 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002571/0.3331, allocations: 1.418 MB / 0.6516 GB, free: 15.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.3331, allocations: 3.984 kB / 0.6516 GB, free: 15.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3331, allocations: 4 kB / 0.6516 GB, free: 15.97 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003842/0.3335, allocations: 323.1 kB / 0.6519 GB, free: 15.63 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.3337, allocations: 24.19 kB / 0.6519 GB, free: 15.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004904/0.3342, allocations: 63.81 kB / 0.652 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.3343, allocations: 88.86 kB / 0.6521 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002501/0.3368, allocations: 1.277 MB / 0.6533 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002487/0.3393, allocations: 1.744 MB / 0.655 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006827/0.34, allocations: 479.8 kB / 0.6555 GB, free: 11.94 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006005/0.3406, allocations: 0.5484 MB / 0.656 GB, free: 11.38 MB / 490.7 MB Notification: Performance of Backend: time 2.81e-07/0.3406, allocations: 0 / 0.656 GB, free: 11.38 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.3436, allocations: 1.893 MB / 0.6579 GB, free: 9.449 MB / 490.7 MB Notification: Performance of SimCode: time 0.003767/0.3474, allocations: 3.313 MB / 0.6611 GB, free: 6.094 MB / 490.7 MB Notification: Performance of Templates: time 0.2068/0.5542, allocations: 27.85 MB / 0.6883 GB, free: 134.4 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches