Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 120 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002165/0.002165, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.57/1.57, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6441/0.6441, allocations: 94.57 MB / 404.1 MB, free: 10.93 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00423/0.00423, allocations: 87.88 kB / 0.5506 GB, free: 5.375 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4884/0.4926, allocations: 73.03 MB / 0.6219 GB, free: 8.48 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07967/0.5723, allocations: 65.66 MB / 0.686 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02578/0.598, allocations: 17.63 MB / 0.7033 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003472/0.6015, allocations: 111 kB / 0.7034 GB, free: 8.551 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00509/0.6066, allocations: 1.195 MB / 0.7045 GB, free: 7.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.6175, allocations: 2.862 MB / 0.7073 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005688/0.6232, allocations: 1.546 MB / 0.7088 GB, free: 2.918 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008341/0.6316, allocations: 3.887 MB / 0.7126 GB, free: 15 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001347/0.6329, allocations: 392.4 kB / 0.713 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004047/0.637, allocations: 1.677 MB / 0.7146 GB, free: 12.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002774/0.6397, allocations: 1.563 MB / 0.7162 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0007393/0.6405, allocations: 192 kB / 0.7163 GB, free: 11.15 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006619/0.6471, allocations: 1.728 MB / 0.718 GB, free: 9.418 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0009335/0.648, allocations: 493.8 kB / 0.7185 GB, free: 8.934 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.6503, allocations: 1.263 MB / 0.7197 GB, free: 7.664 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.6611, allocations: 3.849 MB / 0.7235 GB, free: 3.801 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.437e-06/0.6611, allocations: 4 kB / 0.7235 GB, free: 3.797 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.747e-06/0.6611, allocations: 7.938 kB / 0.7235 GB, free: 3.789 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001206/0.6612, allocations: 0 / 0.7235 GB, free: 3.789 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.007936/0.6691, allocations: 3.069 MB / 0.7265 GB, free: 0.6484 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.559e-05/0.6692, allocations: 16.03 kB / 0.7265 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.698e-05/0.6693, allocations: 47.95 kB / 0.7266 GB, free: 0.5859 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004083/0.6697, allocations: 262.3 kB / 0.7268 GB, free: 328 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008227/0.6705, allocations: 291.2 kB / 0.7271 GB, free: 36 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/0.6741, allocations: 1.493 MB / 0.7286 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.6742, allocations: 144.1 kB / 0.7287 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00037/0.6746, allocations: 196.1 kB / 0.7289 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004279/0.6789, allocations: 2.155 MB / 0.731 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.024e-05/0.6789, allocations: 3.938 kB / 0.731 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001716/0.6791, allocations: 76 kB / 0.7311 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.362e-05/0.6791, allocations: 48 kB / 0.7311 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00429/0.6834, allocations: 2.279 MB / 0.7333 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01339/0.6968, allocations: 8.978 MB / 0.7421 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003639/0.7004, allocations: 1.77 MB / 0.7438 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.7022, allocations: 0.8813 MB / 0.7447 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01032/0.7125, allocations: 6.781 MB / 0.7513 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002208/0.7147, allocations: 0.9561 MB / 0.7522 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 6.182e-06/0.7147, allocations: 0 / 0.7522 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.007499/0.7222, allocations: 3.01 MB / 0.7552 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.615e-05/0.7223, allocations: 77.39 kB / 0.7553 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001939/0.7242, allocations: 1.229 MB / 0.7565 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0002872/0.7245, allocations: 65.7 kB / 0.7565 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008733/0.7254, allocations: 0.8801 MB / 0.7574 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008403/0.7262, allocations: 0.6932 MB / 0.7581 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005655/0.7268, allocations: 327.5 kB / 0.7584 GB, free: 14 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7269, allocations: 301.1 kB / 0.7587 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.7284, allocations: 0.652 MB / 0.7593 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.7302, allocations: 0.8949 MB / 0.7602 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003521/0.7337, allocations: 1.662 MB / 0.7618 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/0.7338, allocations: 4 kB / 0.7618 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.005141/0.7389, allocations: 2.164 MB / 0.7639 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.731e-05/0.739, allocations: 37.7 kB / 0.7639 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.739, allocations: 4 kB / 0.7639 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006725/0.7397, allocations: 166.5 kB / 0.7641 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/0.7413, allocations: 391.5 kB / 0.7645 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005129/0.7464, allocations: 4.83 MB / 0.7692 GB, free: 2.328 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/0.7481, allocations: 174.7 kB / 0.7694 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003694/0.7485, allocations: 83.97 kB / 0.7694 GB, free: 2.074 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.001184/0.7497, allocations: 369.3 kB / 0.7698 GB, free: 1.703 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007937/0.7505, allocations: 206.7 kB / 0.77 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/0.758, allocations: 3.404 MB / 0.7733 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.606e-05/0.758, allocations: 20 kB / 0.7733 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.758, allocations: 15.92 kB / 0.7734 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.76e-05/0.758, allocations: 11.91 kB / 0.7734 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.7693, allocations: 4.768 MB / 0.778 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/0.7693, allocations: 4.188 kB / 0.778 GB, free: 9.246 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.7708, allocations: 403.5 kB / 0.7784 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006254/0.7714, allocations: 166.3 kB / 0.7786 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001754/0.7716, allocations: 75.97 kB / 0.7786 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/0.7762, allocations: 4.829 MB / 0.7834 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.7762, allocations: 4.031 kB / 0.7834 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007018/0.7832, allocations: 3.332 MB / 0.7866 GB, free: 15.97 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/0.7845, allocations: 0.5378 MB / 0.7871 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/0.7848, allocations: 47.95 kB / 0.7872 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009249/0.7857, allocations: 63.91 kB / 0.7872 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/0.7861, allocations: 169.8 kB / 0.7874 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/0.7863, allocations: 83.95 kB / 0.7875 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0014/0.7877, allocations: 0.8627 MB / 0.7883 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7877, allocations: 0 / 0.7883 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003205/0.7909, allocations: 0.8691 MB / 0.7892 GB, free: 13.33 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 Backend phase and start with SimCode phase: time 0.008796/0.7997, allocations: 4.621 MB / 0.7937 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004787/0.8045, allocations: 2.138 MB / 0.7958 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.8045, allocations: 0 / 0.7958 GB, free: 6.48 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002899/0.8074, allocations: 1.374 MB / 0.7971 GB, free: 5.07 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003681/0.8111, allocations: 0.648 MB / 0.7978 GB, free: 4.441 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03097/0.842, allocations: 14.59 MB / 0.812 GB, free: 5.461 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001581/0.8436, allocations: 1.475 MB / 0.8134 GB, free: 3.949 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002294/0.8459, allocations: 0.5034 MB / 0.8139 GB, free: 3.551 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001825/0.8477, allocations: 0.9952 MB / 0.8149 GB, free: 2.559 MB / 0.6387 GB Notification: Performance of SimCode: time 2.084e-06/0.8477, allocations: 0 / 0.8149 GB, free: 2.559 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4708/1.319, allocations: 60.84 MB / 0.8743 GB, free: 169.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.16/16.48, allocations: 14.84 kB / 0.8743 GB, free: 169.3 MB / 0.6544 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 20.14119950897293] Failed to read output from testmodel.py, exit status != 0: 16.676626630011015 16.691361775 16.026570998 Calling exit ...