Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006339/0.006339, allocations: 166.2 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 221.3 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000833/0.000833, allocations: 90.3 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8359/0.8359, allocations: 90.6 MB / 408.5 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003722, allocations: 8 kB / 485.3 MB, free: 1.945 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4238, allocations: 66.28 MB / 0.5387 GB, free: 45.09 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1768/0.6006, allocations: 130.4 MB / 0.6661 GB, free: 9.082 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004225/0.6049, allocations: 3.31 MB / 0.6693 GB, free: 5.77 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.6051, allocations: 8 kB / 0.6693 GB, free: 5.762 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004917/0.6056, allocations: 139.2 kB / 0.6694 GB, free: 5.625 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006794/0.6063, allocations: 326.1 kB / 0.6697 GB, free: 5.305 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005778/0.6069, allocations: 203.3 kB / 0.6699 GB, free: 5.105 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.6074, allocations: 493.8 kB / 0.6704 GB, free: 4.621 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.6076, allocations: 57.39 kB / 0.6705 GB, free: 4.57 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.608, allocations: 175.3 kB / 0.6706 GB, free: 4.398 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.6083, allocations: 199.2 kB / 0.6708 GB, free: 4.203 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.6083, allocations: 12 kB / 0.6708 GB, free: 4.191 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008009/0.6091, allocations: 427.2 kB / 0.6712 GB, free: 3.773 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.352e-05/0.6092, allocations: 47.77 kB / 0.6713 GB, free: 3.727 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 8.423e-05/0.6093, allocations: 73.58 kB / 0.6713 GB, free: 3.648 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000425/0.6097, allocations: 315.2 kB / 0.6716 GB, free: 3.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.6097, allocations: 4 kB / 0.6717 GB, free: 3.336 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.6097, allocations: 0 / 0.6717 GB, free: 3.336 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.6097, allocations: 0 / 0.6717 GB, free: 3.336 MB / 490.7 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.001181/0.6109, allocations: 0.6164 MB / 0.6723 GB, free: 2.672 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.611, allocations: 12.03 kB / 0.6723 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.235e-05/0.6111, allocations: 54.53 kB / 0.6723 GB, free: 2.598 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.454e-05/0.6111, allocations: 35.62 kB / 0.6724 GB, free: 2.562 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.6115, allocations: 265.6 kB / 0.6726 GB, free: 2.266 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.6115, allocations: 12.44 kB / 0.6726 GB, free: 2.254 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.6115, allocations: 20 kB / 0.6726 GB, free: 2.234 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.6121, allocations: 247.1 kB / 0.6729 GB, free: 1.984 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.6121, allocations: 0 / 0.6729 GB, free: 1.984 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/0.6121, allocations: 8.812 kB / 0.6729 GB, free: 1.977 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.6121, allocations: 8 kB / 0.6729 GB, free: 1.969 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004927/0.6126, allocations: 233.6 kB / 0.6731 GB, free: 1.742 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.614, allocations: 1.041 MB / 0.6741 GB, free: 0.5742 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005458/0.6146, allocations: 266.5 kB / 0.6744 GB, free: 312 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002588/0.6149, allocations: 132.8 kB / 0.6745 GB, free: 176 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009263/0.6158, allocations: 0.8294 MB / 0.6753 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003981/0.6162, allocations: 169.7 kB / 0.6755 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 1.633e-06/0.6162, allocations: 4 kB / 0.6755 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.0012/0.6174, allocations: 0.4925 MB / 0.676 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.6175, allocations: 61.27 kB / 0.676 GB, free: 14.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002301/0.6177, allocations: 225 kB / 0.6762 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.6178, allocations: 29.7 kB / 0.6763 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.6179, allocations: 160.3 kB / 0.6764 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.86e-05/0.618, allocations: 86.77 kB / 0.6765 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.35e-05/0.618, allocations: 4 kB / 0.6765 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.6181, allocations: 338.8 kB / 0.6768 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.6184, allocations: 91.95 kB / 0.6769 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.6186, allocations: 127.2 kB / 0.677 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.6189, allocations: 134.7 kB / 0.6772 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.6189, allocations: 0 / 0.6772 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006999/0.6196, allocations: 369.4 kB / 0.6775 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/0.6197, allocations: 33.7 kB / 0.6776 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.6197, allocations: 0 / 0.6776 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.6199, allocations: 40.83 kB / 0.6776 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.6201, allocations: 43.97 kB / 0.6776 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/0.6214, allocations: 1.423 MB / 0.679 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.6217, allocations: 31.88 kB / 0.6791 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.709e-05/0.6217, allocations: 12 kB / 0.6791 GB, free: 11.17 MB / 0.4948 GB 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 (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.000166/0.6219, allocations: 146.9 kB / 0.6792 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.746e-05/0.6219, allocations: 27.62 kB / 0.6792 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008/0.6227, allocations: 361.8 kB / 0.6796 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.6227, allocations: 4 kB / 0.6796 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.6227, allocations: 0 / 0.6796 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.6228, allocations: 5.859 kB / 0.6796 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001175/0.6239, allocations: 0.7631 MB / 0.6803 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.624, allocations: 0 / 0.6803 GB, free: 9.801 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.6241, allocations: 44 kB / 0.6804 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001284/0.6243, allocations: 40.81 kB / 0.6804 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.6243, allocations: 8.5 kB / 0.6804 GB, free: 9.707 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001163/0.6255, allocations: 1.419 MB / 0.6818 GB, free: 8.156 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6255, allocations: 7.984 kB / 0.6818 GB, free: 8.148 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009535/0.6264, allocations: 0.5291 MB / 0.6823 GB, free: 7.598 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.75e-05/0.6265, allocations: 108.7 kB / 0.6824 GB, free: 7.473 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.6266, allocations: 4 kB / 0.6824 GB, free: 7.469 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.6268, allocations: 29.64 kB / 0.6825 GB, free: 7.441 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.13e-05/0.6269, allocations: 27.95 kB / 0.6825 GB, free: 7.414 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.6269, allocations: 12 kB / 0.6825 GB, free: 7.402 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001472/0.6271, allocations: 168.4 kB / 0.6827 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6271, allocations: 0 / 0.6827 GB, free: 7.242 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0004259/0.6275, allocations: 119.9 kB / 0.6828 GB, free: 7.125 MB / 0.4948 GB 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001475/0.629, allocations: 1.193 MB / 0.6839 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008321/0.6298, allocations: 464.7 kB / 0.6844 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.6298, allocations: 0 / 0.6844 GB, free: 5.422 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.6303, allocations: 296.2 kB / 0.6847 GB, free: 5.113 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005728/0.6309, allocations: 78.89 kB / 0.6847 GB, free: 5.039 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.6337, allocations: 1.725 MB / 0.6864 GB, free: 3.254 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.634, allocations: 0.7598 MB / 0.6872 GB, free: 2.469 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001603/0.6342, allocations: 43.28 kB / 0.6872 GB, free: 2.434 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.6344, allocations: 91.41 kB / 0.6873 GB, free: 2.344 MB / 0.4948 GB Notification: Performance of SimCode: time 2.41e-07/0.6344, allocations: 0 / 0.6873 GB, free: 2.344 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.6573, allocations: 8.49 MB / 0.6956 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.6576, allocations: 219 kB / 0.6958 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.978, allocations: 0 / 0.6958 GB, free: 9.887 MB / 0.5105 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat does not exist to compare? outputFormat=mat