Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",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.009631/0.009631, allocations: 170 kB / 15.12 MB, free: 5.559 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.699/1.699, allocations: 205.4 MB / 221.3 MB, free: 13.82 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.0009799/0.00098, allocations: 102.8 kB / 269.6 MB, free: 13.35 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.8661/0.8661, allocations: 90.59 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.000351, allocations: 8 kB / 485.3 MB, free: 1.961 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4949/0.4953, allocations: 66.28 MB / 0.5387 GB, free: 45.23 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1892/0.6846, allocations: 146.8 MB / 0.6821 GB, free: 8.676 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.01508/0.6997, allocations: 9.199 MB / 0.691 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001807/0.7016, allocations: 23.88 kB / 0.6911 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.7041, allocations: 0.6727 MB / 0.6917 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005452/0.7096, allocations: 1.453 MB / 0.6931 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003378/0.713, allocations: 0.8223 MB / 0.694 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003265/0.7163, allocations: 1.526 MB / 0.6954 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007461/0.717, allocations: 368 kB / 0.6958 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.719, allocations: 0.7125 MB / 0.6965 GB, free: 9.898 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/0.7207, allocations: 0.9968 MB / 0.6975 GB, free: 8.898 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.7208, allocations: 60 kB / 0.6975 GB, free: 8.84 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004865/0.7257, allocations: 1.759 MB / 0.6992 GB, free: 7.078 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002959/0.726, allocations: 243 kB / 0.6995 GB, free: 6.84 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0005239/0.7265, allocations: 293 kB / 0.6997 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002579/0.7291, allocations: 1.681 MB / 0.7014 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.7291, allocations: 0 / 0.7014 GB, free: 4.867 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.274e-06/0.7292, allocations: 4 kB / 0.7014 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.601e-05/0.7292, allocations: 0 / 0.7014 GB, free: 4.863 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.003899/0.7331, allocations: 1.672 MB / 0.703 GB, free: 3.133 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.7332, allocations: 8.031 kB / 0.703 GB, free: 3.125 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002593/0.7334, allocations: 181.6 kB / 0.7032 GB, free: 2.938 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002707/0.7337, allocations: 154.2 kB / 0.7034 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.7349, allocations: 0.7086 MB / 0.704 GB, free: 2.035 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/0.735, allocations: 90.38 kB / 0.7041 GB, free: 1.945 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.7352, allocations: 116 kB / 0.7042 GB, free: 1.832 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002313/0.7375, allocations: 1.39 MB / 0.7056 GB, free: 424 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.7376, allocations: 3.938 kB / 0.7056 GB, free: 424 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.7377, allocations: 47.98 kB / 0.7057 GB, free: 376 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.047e-05/0.7377, allocations: 32 kB / 0.7057 GB, free: 344 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.7405, allocations: 1.684 MB / 0.7073 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008087/0.7486, allocations: 6.457 MB / 0.7136 GB, free: 7.527 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.7512, allocations: 1.467 MB / 0.7151 GB, free: 6.059 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005542/0.7567, allocations: 4.242 MB / 0.7192 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001303/0.7581, allocations: 0.7667 MB / 0.72 GB, free: 0.5859 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=134): time 3.967e-06/0.7581, allocations: 0 / 0.72 GB, free: 0.5859 MB / 0.5261 GB Notification: Performance of matching and sorting (n=135): time 0.007947/0.7661, allocations: 4.339 MB / 0.7242 GB, free: 12.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.7661, allocations: 64.72 kB / 0.7243 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000676/0.7668, allocations: 0.5432 MB / 0.7248 GB, free: 11.47 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.054e-05/0.7669, allocations: 53.7 kB / 0.7248 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004178/0.7674, allocations: 465.7 kB / 0.7253 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003866/0.7678, allocations: 461.2 kB / 0.7257 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-05/0.7678, allocations: 24 kB / 0.7257 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002052/0.768, allocations: 402.7 kB / 0.7261 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009884/0.769, allocations: 0.5453 MB / 0.7267 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.7701, allocations: 0.6572 MB / 0.7273 GB, free: 8.852 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.7712, allocations: 0.6484 MB / 0.7279 GB, free: 8.199 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.7713, allocations: 0 / 0.7279 GB, free: 8.199 MB / 0.5417 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003119/0.7744, allocations: 1.646 MB / 0.7295 GB, free: 6.535 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.291e-05/0.7744, allocations: 33.7 kB / 0.7296 GB, free: 6.496 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.7745, allocations: 4 kB / 0.7296 GB, free: 6.492 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005479/0.775, allocations: 155.8 kB / 0.7297 GB, free: 6.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009779/0.776, allocations: 259.6 kB / 0.73 GB, free: 6.086 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004136/0.7802, allocations: 2.557 MB / 0.7325 GB, free: 3.395 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001009/0.7812, allocations: 103.8 kB / 0.7326 GB, free: 3.293 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.7813, allocations: 51.97 kB / 0.7326 GB, free: 3.242 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 3 * 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 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005699/0.7819, allocations: 277.6 kB / 0.7329 GB, free: 2.961 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.7821, allocations: 98.78 kB / 0.733 GB, free: 2.863 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004349/0.7864, allocations: 2.18 MB / 0.7351 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/0.7865, allocations: 20 kB / 0.7351 GB, free: 0.7578 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.7865, allocations: 5.062 kB / 0.7351 GB, free: 0.7539 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.7865, allocations: 7.969 kB / 0.7351 GB, free: 0.7461 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006271/0.7928, allocations: 3.66 MB / 0.7387 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.7929, allocations: 0 / 0.7387 GB, free: 13.02 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009995/0.7939, allocations: 295.6 kB / 0.739 GB, free: 12.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004269/0.7943, allocations: 140.6 kB / 0.7391 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.7944, allocations: 47.97 kB / 0.7392 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002735/0.7972, allocations: 2.262 MB / 0.7414 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.7972, allocations: 3.938 kB / 0.7414 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00474/0.8019, allocations: 2.799 MB / 0.7441 GB, free: 7.305 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.8024, allocations: 175.7 kB / 0.7443 GB, free: 7.113 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.8025, allocations: 37.64 kB / 0.7443 GB, free: 7.078 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007154/0.8033, allocations: 103.8 kB / 0.7444 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.8035, allocations: 121.1 kB / 0.7445 GB, free: 6.855 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.8037, allocations: 55.97 kB / 0.7446 GB, free: 6.801 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004806/0.8041, allocations: 379.1 kB / 0.745 GB, free: 6.434 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8042, allocations: 0 / 0.745 GB, free: 6.434 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001648/0.8058, allocations: 0.5155 MB / 0.7455 GB, free: 5.918 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006057/0.8119, allocations: 3.963 MB / 0.7493 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003275/0.8152, allocations: 1.774 MB / 0.7511 GB, free: 124 kB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8152, allocations: 0 / 0.7511 GB, free: 124 kB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.2683/1.083, allocations: 1.092 MB / 0.7521 GB, free: 178.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/1.085, allocations: 296 kB / 0.7524 GB, free: 178.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/1.097, allocations: 8.103 MB / 0.7603 GB, free: 176 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006923/1.098, allocations: 1.177 MB / 0.7615 GB, free: 175.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00124/1.099, allocations: 338.2 kB / 0.7618 GB, free: 175.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009013/1.1, allocations: 0.5114 MB / 0.7623 GB, free: 175.2 MB / 0.5573 GB Notification: Performance of SimCode: time 2.134e-06/1.1, allocations: 0 / 0.7623 GB, free: 175.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08251/1.183, allocations: 34.5 MB / 0.796 GB, free: 165 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/1.183, allocations: 220.2 kB / 0.7962 GB, free: 164.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.35/4.533, allocations: 4 kB / 0.7962 GB, free: 164.8 MB / 0.5573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat does not exist to compare? outputFormat=mat