Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001349/0.001349, allocations: 117.4 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.00146/0.00146, 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.53/1.53, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7053/0.7053, allocations: 100.3 MB / 409.8 MB, free: 5.379 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_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.002588/0.002588, allocations: 85.75 kB / 0.5589 GB, free: 13.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4261/0.4287, allocations: 74.43 MB / 0.6316 GB, free: 2.391 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07504/0.5037, allocations: 65.66 MB / 0.6957 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02431/0.528, allocations: 17.62 MB / 0.7129 GB, free: 15.91 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.5307, allocations: 111 kB / 0.713 GB, free: 15.8 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003578/0.5343, allocations: 1.207 MB / 0.7142 GB, free: 14.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008724/0.543, allocations: 2.85 MB / 0.717 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005041/0.5481, allocations: 1.554 MB / 0.7185 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006487/0.5546, allocations: 3.891 MB / 0.7223 GB, free: 6.25 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.5556, allocations: 392.4 kB / 0.7227 GB, free: 5.832 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/0.5591, allocations: 1.669 MB / 0.7243 GB, free: 4.156 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002513/0.5616, allocations: 1.575 MB / 0.7258 GB, free: 2.574 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004772/0.5621, allocations: 188 kB / 0.726 GB, free: 2.391 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005197/0.5673, allocations: 1.724 MB / 0.7277 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0006513/0.5679, allocations: 0.4939 MB / 0.7282 GB, free: 172 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.5697, allocations: 1.263 MB / 0.7294 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007899/0.5776, allocations: 3.837 MB / 0.7332 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.5776, allocations: 4 kB / 0.7332 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.754e-06/0.5776, allocations: 0 / 0.7332 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.546e-05/0.5777, allocations: 0 / 0.7332 GB, free: 11.04 MB / 0.5606 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.00654/0.5842, allocations: 3.08 MB / 0.7362 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.5843, allocations: 8.031 kB / 0.7362 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.869e-05/0.5843, allocations: 51.95 kB / 0.7362 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003178/0.5846, allocations: 266.3 kB / 0.7365 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005927/0.5852, allocations: 291.2 kB / 0.7368 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.5878, allocations: 1.497 MB / 0.7382 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.5879, allocations: 140.1 kB / 0.7384 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002593/0.5882, allocations: 192.1 kB / 0.7385 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003701/0.5919, allocations: 2.163 MB / 0.7406 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.5919, allocations: 0 / 0.7406 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.5921, allocations: 76 kB / 0.7407 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.263e-05/0.5921, allocations: 48 kB / 0.7408 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003851/0.596, allocations: 2.267 MB / 0.743 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.6076, allocations: 8.986 MB / 0.7518 GB, free: 6.969 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003252/0.6108, allocations: 1.77 MB / 0.7535 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.6124, allocations: 0.8891 MB / 0.7544 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008759/0.6211, allocations: 6.777 MB / 0.761 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001955/0.6231, allocations: 0.9523 MB / 0.7619 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=200): time 6.442e-06/0.6231, allocations: 11.92 kB / 0.7619 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of matching and sorting (n=200): time 0.006744/0.6298, allocations: 3.003 MB / 0.7648 GB, free: 8.559 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.6299, allocations: 73.41 kB / 0.7649 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.6316, allocations: 1.233 MB / 0.7661 GB, free: 7.234 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001532/0.6318, allocations: 61.7 kB / 0.7662 GB, free: 7.168 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000883/0.6326, allocations: 0.8763 MB / 0.767 GB, free: 6.281 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006945/0.6333, allocations: 0.6932 MB / 0.7677 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005793/0.6339, allocations: 335.5 kB / 0.768 GB, free: 5.25 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.6341, allocations: 301.1 kB / 0.7683 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.6354, allocations: 0.652 MB / 0.769 GB, free: 4.301 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.637, allocations: 0.891 MB / 0.7698 GB, free: 3.34 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.6401, allocations: 1.669 MB / 0.7715 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.6401, allocations: 3.938 kB / 0.7715 GB, free: 1.605 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.00456/0.6447, allocations: 2.16 MB / 0.7736 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.6448, allocations: 39.88 kB / 0.7736 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.6448, allocations: 4 kB / 0.7736 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005935/0.6454, allocations: 162.4 kB / 0.7738 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.6468, allocations: 395.5 kB / 0.7741 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004823/0.6517, allocations: 4.837 MB / 0.7789 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.6531, allocations: 166.8 kB / 0.779 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002394/0.6533, allocations: 83.97 kB / 0.7791 GB, free: 9.312 MB / 0.6075 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.0008522/0.6541, allocations: 365.4 kB / 0.7795 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005054/0.6546, allocations: 206.7 kB / 0.7796 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006765/0.6614, allocations: 3.412 MB / 0.783 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.07e-05/0.6614, allocations: 24 kB / 0.783 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.527e-06/0.6614, allocations: 4 kB / 0.783 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.021e-05/0.6615, allocations: 15.89 kB / 0.783 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009445/0.6709, allocations: 4.764 MB / 0.7877 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.6709, allocations: 4 kB / 0.7877 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/0.6724, allocations: 403.5 kB / 0.7881 GB, free: 100 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005741/0.6729, allocations: 166.5 kB / 0.7882 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/0.6731, allocations: 71.95 kB / 0.7883 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004742/0.6779, allocations: 4.835 MB / 0.793 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.6779, allocations: 3.938 kB / 0.793 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006781/0.6846, allocations: 3.328 MB / 0.7963 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001162/0.6858, allocations: 0.5378 MB / 0.7968 GB, free: 6.668 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003427/0.6861, allocations: 60.06 kB / 0.7968 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009177/0.6871, allocations: 59.97 kB / 0.7969 GB, free: 6.551 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/0.6874, allocations: 169.7 kB / 0.7971 GB, free: 6.383 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/0.6876, allocations: 87.95 kB / 0.7972 GB, free: 6.297 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001333/0.6889, allocations: 0.8627 MB / 0.798 GB, free: 5.441 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6889, allocations: 0 / 0.798 GB, free: 5.441 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002529/0.6915, allocations: 0.873 MB / 0.7988 GB, free: 4.566 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.007855/0.6993, allocations: 4.622 MB / 0.8034 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00417/0.7035, allocations: 2.145 MB / 0.8055 GB, free: 13.7 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.7035, allocations: 0 / 0.8055 GB, free: 13.7 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002352/0.7058, allocations: 1.36 MB / 0.8068 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002966/0.7088, allocations: 0.655 MB / 0.8074 GB, free: 11.68 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02484/0.7337, allocations: 14.58 MB / 0.8217 GB, free: 12.71 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001306/0.735, allocations: 1.475 MB / 0.8231 GB, free: 11.2 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001693/0.7367, allocations: 0.5063 MB / 0.8236 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.7381, allocations: 0.9912 MB / 0.8246 GB, free: 9.809 MB / 0.6544 GB Notification: Performance of SimCode: time 1.523e-06/0.7381, allocations: 0 / 0.8246 GB, free: 9.809 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4727/1.211, allocations: 60.84 MB / 0.884 GB, free: 152.3 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/16.34, allocations: 19.98 kB / 0.884 GB, free: 152.3 MB / 0.6544 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 20.10646243300289] Failed to read output from testmodel.py, exit status != 0: 16.516569023020566 16.524622091 15.944541349 Calling exit ...