Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.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.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve",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.000967/0.0009671, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001356/0.001356, allocations: 168.7 kB / 15.95 MB, free: 204 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.427/1.427, allocations: 223.2 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7852/0.7852, allocations: 89.66 MB / 380.7 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000408/0.0004081, allocations: 10.97 kB / 460.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1681, allocations: 68.83 MB / 0.5166 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5252/0.6933, allocations: 130.5 MB / 0.644 GB, free: 1.734 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00447/0.6979, allocations: 3.325 MB / 0.6473 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000329/0.6982, allocations: 5.688 kB / 0.6473 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005685/0.6988, allocations: 139.8 kB / 0.6474 GB, free: 14.93 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009143/0.6997, allocations: 332.2 kB / 0.6477 GB, free: 14.66 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008227/0.7006, allocations: 209.5 kB / 0.6479 GB, free: 14.51 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006623/0.7012, allocations: 0.4883 MB / 0.6484 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.7014, allocations: 62.78 kB / 0.6484 GB, free: 14.18 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003672/0.7018, allocations: 181 kB / 0.6486 GB, free: 14.08 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002764/0.7021, allocations: 196 kB / 0.6488 GB, free: 13.97 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.7021, allocations: 13.78 kB / 0.6488 GB, free: 13.97 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008441/0.703, allocations: 417 kB / 0.6492 GB, free: 13.79 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.7031, allocations: 44.73 kB / 0.6493 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 8.452e-05/0.7032, allocations: 77.02 kB / 0.6493 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004372/0.7036, allocations: 335.5 kB / 0.6497 GB, free: 13.49 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.7036, allocations: 0 / 0.6497 GB, free: 13.49 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7036, allocations: 0 / 0.6497 GB, free: 13.49 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.7036, allocations: 0 / 0.6497 GB, free: 13.49 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001137/0.7048, allocations: 0.6268 MB / 0.6503 GB, free: 12.91 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.7048, allocations: 14.52 kB / 0.6503 GB, free: 12.91 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.674e-05/0.7049, allocations: 51.48 kB / 0.6503 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.481e-05/0.705, allocations: 36.41 kB / 0.6504 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.7053, allocations: 293.8 kB / 0.6506 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.7054, allocations: 19.22 kB / 0.6507 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.7054, allocations: 21.75 kB / 0.6507 GB, free: 12.53 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004842/0.7059, allocations: 263.6 kB / 0.6509 GB, free: 12.36 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.7059, allocations: 0 / 0.6509 GB, free: 12.36 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.706, allocations: 14.89 kB / 0.6509 GB, free: 12.35 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.706, allocations: 4.594 kB / 0.651 GB, free: 12.35 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.7064, allocations: 237.2 kB / 0.6512 GB, free: 12.23 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.7079, allocations: 1.07 MB / 0.6522 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.7084, allocations: 252.8 kB / 0.6525 GB, free: 11.09 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.7086, allocations: 113 kB / 0.6526 GB, free: 11.03 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/0.7097, allocations: 0.9812 MB / 0.6535 GB, free: 9.996 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004019/0.7101, allocations: 152.2 kB / 0.6537 GB, free: 9.891 MB / 478.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.7101, allocations: 0 / 0.6537 GB, free: 9.891 MB / 478.1 MB Notification: Performance of matching and sorting (n=23): time 0.001047/0.7112, allocations: 480.4 kB / 0.6541 GB, free: 9.586 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.7112, allocations: 54.22 kB / 0.6542 GB, free: 9.523 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.7115, allocations: 266.4 kB / 0.6544 GB, free: 9.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.7116, allocations: 36.19 kB / 0.6545 GB, free: 9.301 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.7117, allocations: 166.1 kB / 0.6546 GB, free: 9.148 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.255e-05/0.7118, allocations: 81.67 kB / 0.6547 GB, free: 9.078 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.7118, allocations: 4 kB / 0.6547 GB, free: 9.074 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.7119, allocations: 340.6 kB / 0.655 GB, free: 8.738 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.7121, allocations: 82.59 kB / 0.6551 GB, free: 8.703 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002068/0.7124, allocations: 119 kB / 0.6552 GB, free: 8.629 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00023/0.7126, allocations: 120 kB / 0.6553 GB, free: 8.555 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.7126, allocations: 0 / 0.6553 GB, free: 8.555 MB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006302/0.7132, allocations: 346.8 kB / 0.6557 GB, free: 8.355 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.899e-05/0.7133, allocations: 31.23 kB / 0.6557 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7133, allocations: 2.656 kB / 0.6557 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002237/0.7135, allocations: 48.12 kB / 0.6558 GB, free: 8.293 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.7137, allocations: 40.52 kB / 0.6558 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.7151, allocations: 1.411 MB / 0.6572 GB, free: 6.859 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.7153, allocations: 33.64 kB / 0.6572 GB, free: 6.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.7153, allocations: 9.812 kB / 0.6572 GB, free: 6.836 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.7155, allocations: 146.9 kB / 0.6574 GB, free: 6.695 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/0.7155, allocations: 33.33 kB / 0.6574 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007286/0.7163, allocations: 346.1 kB / 0.6577 GB, free: 6.469 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.7163, allocations: 3.688 kB / 0.6577 GB, free: 6.469 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.7163, allocations: 3.938 kB / 0.6577 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.7163, allocations: 3.984 kB / 0.6577 GB, free: 6.461 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/0.7175, allocations: 0.7373 MB / 0.6584 GB, free: 5.863 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7175, allocations: 2.125 kB / 0.6584 GB, free: 5.863 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.7176, allocations: 42.45 kB / 0.6585 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000143/0.7178, allocations: 45.69 kB / 0.6585 GB, free: 5.824 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.7178, allocations: 10.92 kB / 0.6585 GB, free: 5.816 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.7191, allocations: 1.42 MB / 0.6599 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7191, allocations: 0 / 0.6599 GB, free: 4.387 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008748/0.72, allocations: 0.5019 MB / 0.6604 GB, free: 4.055 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.237e-05/0.7201, allocations: 108.6 kB / 0.6605 GB, free: 3.938 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.7201, allocations: 10.95 kB / 0.6605 GB, free: 3.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.7203, allocations: 25.52 kB / 0.6606 GB, free: 3.914 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.11e-05/0.7204, allocations: 29.09 kB / 0.6606 GB, free: 3.898 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.7204, allocations: 9.859 kB / 0.6606 GB, free: 3.895 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.7206, allocations: 195.1 kB / 0.6608 GB, free: 3.766 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7206, allocations: 0 / 0.6608 GB, free: 3.766 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005022/0.7212, allocations: 126.8 kB / 0.6609 GB, free: 3.73 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001446/0.7226, allocations: 1.154 MB / 0.662 GB, free: 2.812 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007827/0.7234, allocations: 398.1 kB / 0.6624 GB, free: 2.535 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.7234, allocations: 4 kB / 0.6624 GB, free: 2.531 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.7238, allocations: 249.4 kB / 0.6626 GB, free: 2.355 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.7245, allocations: 95.58 kB / 0.6627 GB, free: 2.305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.7276, allocations: 1.821 MB / 0.6645 GB, free: 1.094 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.728, allocations: 0.7627 MB / 0.6653 GB, free: 372 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002152/0.7282, allocations: 48.67 kB / 0.6653 GB, free: 344 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.7284, allocations: 96 kB / 0.6654 GB, free: 264 kB / 478.1 MB Notification: Performance of SimCode: time 1.253e-06/0.7284, allocations: 0 / 0.6654 GB, free: 264 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.7558, allocations: 8.823 MB / 0.674 GB, free: 9.16 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000293/0.7561, allocations: 213.7 kB / 0.6742 GB, free: 8.918 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/3.041, allocations: 3.938 kB / 0.6742 GB, free: 8.914 MB / 494.1 MB (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat does not exist to compare? outputFormat=mat