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.001268/0.001268, allocations: 99.62 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.001623/0.001623, allocations: 177.3 kB / 15.95 MB, free: 216 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.391/1.391, allocations: 223.2 MB / 239.9 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8328/0.8328, allocations: 89.64 MB / 380.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003416, allocations: 8.938 kB / 460 MB, free: 24.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.161, allocations: 68.83 MB / 0.5165 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5967/0.7578, allocations: 122 MB / 0.6356 GB, free: 7.926 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.006234/0.7641, allocations: 2.992 MB / 0.6385 GB, free: 5.551 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00044/0.7646, allocations: 6.219 kB / 0.6385 GB, free: 5.547 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007431/0.7654, allocations: 151.1 kB / 0.6386 GB, free: 5.422 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001261/0.7666, allocations: 339.1 kB / 0.639 GB, free: 5.141 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.7675, allocations: 217.4 kB / 0.6392 GB, free: 4.973 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006026/0.7682, allocations: 305 kB / 0.6395 GB, free: 4.785 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.7684, allocations: 67.55 kB / 0.6395 GB, free: 4.746 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.7689, allocations: 169.2 kB / 0.6397 GB, free: 4.648 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.7693, allocations: 173 kB / 0.6398 GB, free: 4.547 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.7693, allocations: 12.81 kB / 0.6399 GB, free: 4.547 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.7706, allocations: 446 kB / 0.6403 GB, free: 4.371 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.628e-05/0.7707, allocations: 39.92 kB / 0.6403 GB, free: 4.34 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.7709, allocations: 81.08 kB / 0.6404 GB, free: 4.281 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006128/0.7715, allocations: 323.5 kB / 0.6407 GB, free: 4.086 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.7715, allocations: 4 kB / 0.6407 GB, free: 4.082 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.7715, allocations: 2.812 kB / 0.6407 GB, free: 4.082 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.7715, allocations: 0 / 0.6407 GB, free: 4.082 MB / 462.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.001592/0.7731, allocations: 0.6214 MB / 0.6413 GB, free: 3.512 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.7732, allocations: 8.594 kB / 0.6413 GB, free: 3.512 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001136/0.7733, allocations: 65.81 kB / 0.6414 GB, free: 3.445 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.7734, allocations: 37.73 kB / 0.6414 GB, free: 3.426 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.774, allocations: 276.5 kB / 0.6417 GB, free: 3.152 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.534e-05/0.7741, allocations: 22.3 kB / 0.6417 GB, free: 3.141 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.758e-05/0.7741, allocations: 27.08 kB / 0.6417 GB, free: 3.129 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007049/0.7749, allocations: 257.2 kB / 0.642 GB, free: 2.961 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.7749, allocations: 6.531 kB / 0.642 GB, free: 2.957 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.7749, allocations: 8 kB / 0.642 GB, free: 2.949 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.775, allocations: 8.828 kB / 0.642 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006945/0.7757, allocations: 231.9 kB / 0.6422 GB, free: 2.836 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.7779, allocations: 1.093 MB / 0.6433 GB, free: 1.809 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007568/0.7787, allocations: 254.9 kB / 0.6435 GB, free: 1.664 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/0.7801, allocations: 0.9859 MB / 0.6445 GB, free: 0.625 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005204/0.7806, allocations: 154.8 kB / 0.6446 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=23): time 2.435e-06/0.7807, allocations: 7.938 kB / 0.6447 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of matching and sorting (n=23): time 0.001605/0.7823, allocations: 468 kB / 0.6451 GB, free: 220 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/0.7824, allocations: 62.42 kB / 0.6452 GB, free: 148 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004372/0.7828, allocations: 266.7 kB / 0.6454 GB, free: 15.96 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.234e-05/0.7829, allocations: 28.36 kB / 0.6454 GB, free: 15.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.783, allocations: 169.6 kB / 0.6456 GB, free: 15.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.7832, allocations: 80.78 kB / 0.6457 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/0.7832, allocations: 6.438 kB / 0.6457 GB, free: 15.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.7834, allocations: 343.8 kB / 0.646 GB, free: 15.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002995/0.7837, allocations: 82.97 kB / 0.6461 GB, free: 15.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.784, allocations: 112.5 kB / 0.6462 GB, free: 15.25 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000392/0.7844, allocations: 122.1 kB / 0.6463 GB, free: 15.18 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.7844, allocations: 3.938 kB / 0.6463 GB, free: 15.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001032/0.7855, allocations: 349.6 kB / 0.6467 GB, free: 14.97 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.054e-05/0.7855, allocations: 33.83 kB / 0.6467 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.7856, allocations: 0 / 0.6467 GB, free: 14.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.7859, allocations: 45.06 kB / 0.6467 GB, free: 14.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/0.7862, allocations: 49.62 kB / 0.6468 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/0.7879, allocations: 1.422 MB / 0.6482 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.7882, allocations: 37.2 kB / 0.6482 GB, free: 13.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.7883, allocations: 7.219 kB / 0.6482 GB, free: 13.45 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.0002305/0.7885, allocations: 138.8 kB / 0.6483 GB, free: 13.31 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.988e-05/0.7886, allocations: 28.59 kB / 0.6484 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.7897, allocations: 345.5 kB / 0.6487 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.7897, allocations: 5.656 kB / 0.6487 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.7897, allocations: 3.953 kB / 0.6487 GB, free: 13.09 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.7898, allocations: 7.969 kB / 0.6487 GB, free: 13.08 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.7915, allocations: 0.7489 MB / 0.6494 GB, free: 12.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.7915, allocations: 4.031 kB / 0.6495 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.7917, allocations: 39.84 kB / 0.6495 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002123/0.792, allocations: 43.25 kB / 0.6495 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.792, allocations: 7.031 kB / 0.6495 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.7937, allocations: 1.427 MB / 0.6509 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.7937, allocations: 3.938 kB / 0.6509 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009971/0.7947, allocations: 0.5187 MB / 0.6514 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.7948, allocations: 111.9 kB / 0.6515 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.7948, allocations: 6.734 kB / 0.6516 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.7951, allocations: 18.33 kB / 0.6516 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.827e-05/0.7952, allocations: 22.22 kB / 0.6516 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.669e-05/0.7952, allocations: 13.39 kB / 0.6516 GB, free: 10.49 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.7954, allocations: 193.5 kB / 0.6518 GB, free: 10.36 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7954, allocations: 0 / 0.6518 GB, free: 10.36 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0005282/0.7959, allocations: 131.9 kB / 0.6519 GB, free: 10.32 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.001488/0.7974, allocations: 1.235 MB / 0.6531 GB, free: 9.32 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0009292/0.7984, allocations: 398.9 kB / 0.6535 GB, free: 9.043 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7984, allocations: 2.562 kB / 0.6535 GB, free: 9.043 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004875/0.7989, allocations: 259.3 kB / 0.6538 GB, free: 8.855 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005931/0.7995, allocations: 97.41 kB / 0.6538 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.8035, allocations: 2.107 MB / 0.6559 GB, free: 7.297 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.804, allocations: 0.775 MB / 0.6567 GB, free: 6.555 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002418/0.8043, allocations: 52.42 kB / 0.6567 GB, free: 6.523 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.8045, allocations: 99.39 kB / 0.6568 GB, free: 6.441 MB / 478.1 MB Notification: Performance of SimCode: time 1.332e-06/0.8045, allocations: 4 kB / 0.6568 GB, free: 6.438 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02576/0.8302, allocations: 8.772 MB / 0.6654 GB, free: 0.582 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/0.8305, allocations: 200.2 kB / 0.6656 GB, free: 352 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.119/2.95, allocations: 4 kB / 0.6656 GB, free: 348 kB / 478.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