Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.PCV,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8413/0.8413, allocations: 89.64 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004348/0.0004348, allocations: 12.16 kB / 460 MB, free: 24.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1953, allocations: 68.83 MB / 0.5165 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.5826/0.778, allocations: 160.5 MB / 0.6732 GB, free: 9.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02183/0.7999, allocations: 14.9 MB / 0.6877 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00359/0.8035, allocations: 31.81 kB / 0.6877 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004015/0.8076, allocations: 0.8864 MB / 0.6886 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.008456/0.8161, allocations: 2.13 MB / 0.6907 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00691/0.823, allocations: 1.373 MB / 0.692 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.007102/0.8301, allocations: 2.13 MB / 0.6941 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007955/0.831, allocations: 351.7 kB / 0.6944 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003568/0.8345, allocations: 1.149 MB / 0.6956 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.8372, allocations: 1.164 MB / 0.6967 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.8375, allocations: 84 kB / 0.6968 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006524/0.844, allocations: 2.286 MB / 0.699 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000598/0.8446, allocations: 330.6 kB / 0.6993 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008899/0.8455, allocations: 376.8 kB / 0.6997 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004375/0.8499, allocations: 2.03 MB / 0.7017 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.85, allocations: 0 / 0.7017 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.366e-06/0.85, allocations: 0 / 0.7017 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.332e-05/0.85, allocations: 3.938 kB / 0.7017 GB, free: 12.12 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.004651/0.8547, allocations: 2.09 MB / 0.7037 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.8547, allocations: 8.031 kB / 0.7037 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003477/0.8551, allocations: 211.1 kB / 0.7039 GB, free: 9.754 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006025/0.8557, allocations: 229.4 kB / 0.7041 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.8574, allocations: 0.9099 MB / 0.705 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.946e-05/0.8575, allocations: 114.8 kB / 0.7051 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002168/0.8577, allocations: 159.9 kB / 0.7053 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.8605, allocations: 1.62 MB / 0.7069 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.8605, allocations: 0 / 0.7069 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.8607, allocations: 64.62 kB / 0.7069 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-05/0.8607, allocations: 36 kB / 0.707 GB, free: 6.52 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002598/0.8633, allocations: 1.496 MB / 0.7084 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01051/0.8739, allocations: 7.271 MB / 0.7155 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002993/0.8769, allocations: 1.545 MB / 0.717 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00721/0.8842, allocations: 6.062 MB / 0.723 GB, free: 4.75 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.518e-05/0.8843, allocations: 55.44 kB / 0.723 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=166): time 4.789e-06/0.8843, allocations: 4 kB / 0.723 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of matching and sorting (n=166): time 0.006625/0.8909, allocations: 3.123 MB / 0.7261 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.8911, allocations: 179.1 kB / 0.7262 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.8926, allocations: 1.079 MB / 0.7273 GB, free: 68 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.8928, allocations: 57.7 kB / 0.7273 GB, free: 4 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005482/0.8933, allocations: 0.6888 MB / 0.728 GB, free: 15.3 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005023/0.8938, allocations: 0.5698 MB / 0.7286 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.271e-05/0.8939, allocations: 28 kB / 0.7286 GB, free: 14.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.8941, allocations: 369.9 kB / 0.729 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/0.8951, allocations: 0.492 MB / 0.7294 GB, free: 13.84 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001129/0.8962, allocations: 0.8289 MB / 0.7302 GB, free: 12.88 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.8973, allocations: 0.6132 MB / 0.7308 GB, free: 12.27 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.8974, allocations: 7.938 kB / 0.7309 GB, free: 12.26 MB / 0.545 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003572/0.9009, allocations: 1.837 MB / 0.7326 GB, free: 10.41 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.901, allocations: 8 kB / 0.7327 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.901, allocations: 8 kB / 0.7327 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008144/0.9018, allocations: 232.1 kB / 0.7329 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.9033, allocations: 383.5 kB / 0.7333 GB, free: 9.773 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005882/0.9092, allocations: 7.194 MB / 0.7403 GB, free: 1.926 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00203/0.9112, allocations: 190.3 kB / 0.7405 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002794/0.9115, allocations: 67.98 kB / 0.7405 GB, free: 1.672 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008553/0.9124, allocations: 330.9 kB / 0.7408 GB, free: 1.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004558/0.9128, allocations: 162 kB / 0.741 GB, free: 1.18 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004302/0.9172, allocations: 2.08 MB / 0.743 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3e-05/0.9172, allocations: 19.98 kB / 0.743 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.9172, allocations: 8 kB / 0.7431 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/0.9173, allocations: 7.969 kB / 0.7431 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007317/0.9246, allocations: 3.924 MB / 0.7469 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.9247, allocations: 4 kB / 0.7469 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.9257, allocations: 263.8 kB / 0.7471 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.9276, allocations: 483.4 kB / 0.7476 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.9278, allocations: 55.92 kB / 0.7477 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007861/0.9357, allocations: 9.484 MB / 0.7569 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.9357, allocations: 7.953 kB / 0.7569 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005305/0.941, allocations: 3.031 MB / 0.7599 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006966/0.9418, allocations: 270.6 kB / 0.7601 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.942, allocations: 39.98 kB / 0.7602 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.9432, allocations: 100 kB / 0.7603 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/0.9435, allocations: 128.6 kB / 0.7604 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/0.9436, allocations: 75.94 kB / 0.7605 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001062/0.9447, allocations: 0.7479 MB / 0.7612 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9447, allocations: 0 / 0.7612 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002733/0.9475, allocations: 0.7723 MB / 0.762 GB, free: 10.54 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 4 {2 3,2 3,2 3,2 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006588/0.9541, allocations: 5.036 MB / 0.7669 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00345/0.9575, allocations: 1.994 MB / 0.7688 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.9576, allocations: 3.953 kB / 0.7688 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002453/0.96, allocations: 1.441 MB / 0.7702 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002987/0.963, allocations: 0.5098 MB / 0.7707 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/0.9848, allocations: 16.88 MB / 0.7872 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.9859, allocations: 1.308 MB / 0.7885 GB, free: 14.33 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001622/0.9875, allocations: 320.6 kB / 0.7888 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008869/0.9884, allocations: 0.6672 MB / 0.7895 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of SimCode: time 1.082e-06/0.9884, allocations: 4 kB / 0.7895 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4142/1.403, allocations: 48.54 MB / 0.8369 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000181/1.403, allocations: 199.2 kB / 0.837 GB, free: 208.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.607/5.01, allocations: 0 / 0.837 GB, free: 208.8 MB / 0.6075 GB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_PCV.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat does not exist to compare? outputFormat=mat