Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.001215/0.001215, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.00135/0.00135, allocations: 219 kB / 23.04 MB, free: 5.074 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.405/1.405, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.7491/0.7491, allocations: 94.55 MB / 407.8 MB, free: 9.207 MB / 318.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.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",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.002446/0.002446, allocations: 83.58 kB / 0.5557 GB, free: 38.63 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1222, allocations: 73.06 MB / 0.6271 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4548/0.5769, allocations: 146 MB / 0.7696 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003224/0.5802, allocations: 3.36 MB / 0.7729 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/0.5805, allocations: 29.39 kB / 0.7729 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.5811, allocations: 212.2 kB / 0.7732 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009528/0.582, allocations: 0.4969 MB / 0.7736 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009025/0.5829, allocations: 406.6 kB / 0.774 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001037/0.584, allocations: 0.7309 MB / 0.7747 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.5842, allocations: 78.84 kB / 0.7748 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000827/0.585, allocations: 376.7 kB / 0.7752 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005716/0.5856, allocations: 363.8 kB / 0.7755 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.85e-05/0.5857, allocations: 36.03 kB / 0.7756 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.587, allocations: 0.5889 MB / 0.7761 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.5872, allocations: 93.55 kB / 0.7762 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002386/0.5874, allocations: 241 kB / 0.7764 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.5884, allocations: 0.7383 MB / 0.7772 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.5884, allocations: 1.531 kB / 0.7772 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5884, allocations: 1.094 kB / 0.7772 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.5884, allocations: 0 / 0.7772 GB, free: 1.555 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001485/0.5899, allocations: 0.7742 MB / 0.7779 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.59, allocations: 9.75 kB / 0.7779 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.326e-05/0.59, allocations: 16.88 kB / 0.778 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.583e-05/0.5901, allocations: 71.52 kB / 0.778 GB, free: 17.01 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.5902, allocations: 54.95 kB / 0.7781 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.5908, allocations: 365.8 kB / 0.7784 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.5908, allocations: 26.09 kB / 0.7784 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.139e-05/0.5909, allocations: 32.56 kB / 0.7785 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.5915, allocations: 430.8 kB / 0.7789 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.5916, allocations: 5.016 kB / 0.7789 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.088e-05/0.5916, allocations: 14.44 kB / 0.7789 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.5916, allocations: 7.812 kB / 0.7789 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00079/0.5924, allocations: 377 kB / 0.7793 GB, free: 16.69 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002119/0.5945, allocations: 1.818 MB / 0.781 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007064/0.5952, allocations: 317.8 kB / 0.7814 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.5955, allocations: 161.1 kB / 0.7815 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00159/0.5971, allocations: 0.7534 MB / 0.7822 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.5975, allocations: 211.8 kB / 0.7824 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 2.485e-06/0.5975, allocations: 4 kB / 0.7824 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001319/0.5988, allocations: 0.5173 MB / 0.783 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.5989, allocations: 67.16 kB / 0.783 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00036/0.5992, allocations: 364.4 kB / 0.7834 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.5993, allocations: 31.77 kB / 0.7834 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.5994, allocations: 226 kB / 0.7836 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.481e-05/0.5995, allocations: 128.9 kB / 0.7837 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.5996, allocations: 70.48 kB / 0.7838 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.5998, allocations: 357.6 kB / 0.7841 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.6, allocations: 120 kB / 0.7843 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.6003, allocations: 179.3 kB / 0.7844 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005642/0.6009, allocations: 334.8 kB / 0.7847 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.6009, allocations: 0 / 0.7847 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008565/0.6018, allocations: 468.4 kB / 0.7852 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.6018, allocations: 43.7 kB / 0.7852 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.6018, allocations: 4.562 kB / 0.7852 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002227/0.602, allocations: 40.92 kB / 0.7853 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/0.6023, allocations: 79.11 kB / 0.7854 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.6036, allocations: 1.43 MB / 0.7867 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.6038, allocations: 36.39 kB / 0.7868 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.6039, allocations: 20.47 kB / 0.7868 GB, free: 12.76 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001925/0.6041, allocations: 164.6 kB / 0.787 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/0.6041, allocations: 44.12 kB / 0.787 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009629/0.6051, allocations: 0.5276 MB / 0.7875 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.6051, allocations: 4.625 kB / 0.7875 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.6051, allocations: 0 / 0.7875 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.6051, allocations: 2.578 kB / 0.7875 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.6065, allocations: 0.9395 MB / 0.7884 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.6065, allocations: 3.938 kB / 0.7884 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002171/0.6068, allocations: 60.83 kB / 0.7885 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.6069, allocations: 48.11 kB / 0.7885 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.6069, allocations: 11.83 kB / 0.7886 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.6082, allocations: 1.433 MB / 0.79 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6082, allocations: 0 / 0.79 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.6093, allocations: 0.6477 MB / 0.7906 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.8e-05/0.6094, allocations: 43.83 kB / 0.7906 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.976e-05/0.6094, allocations: 10.41 kB / 0.7906 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.6096, allocations: 23.02 kB / 0.7907 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.6097, allocations: 37.58 kB / 0.7907 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.6098, allocations: 13.11 kB / 0.7907 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002715/0.61, allocations: 268.5 kB / 0.791 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.61, allocations: 0 / 0.791 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005965/0.6106, allocations: 169.7 kB / 0.7911 GB, free: 10.61 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001784/0.6124, allocations: 1.312 MB / 0.7924 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009911/0.6134, allocations: 497.3 kB / 0.7929 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.6134, allocations: 0 / 0.7929 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.6139, allocations: 282.6 kB / 0.7932 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.6147, allocations: 143.5 kB / 0.7933 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005869/0.6205, allocations: 3.858 MB / 0.7971 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.6211, allocations: 0.8185 MB / 0.7979 GB, free: 7.098 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003284/0.6214, allocations: 88.42 kB / 0.7979 GB, free: 7.074 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.6216, allocations: 158.6 kB / 0.7981 GB, free: 7.066 MB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/0.6216, allocations: 0 / 0.7981 GB, free: 7.066 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.6623, allocations: 13.12 MB / 0.8109 GB, free: 3.293 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.73, allocations: 11.38 kB / 0.8109 GB, free: 3.285 MB / 0.5919 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 16.17231997998897] Failed to read output from testmodel.py, exit status != 0: 12.895786811946891 12.916057679 12.323691881 Calling exit ...