Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.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 (/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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",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.01019/0.01019, allocations: 101 kB / 15.73 MB, free: 6.059 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.002015/0.002015, allocations: 195.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.886/1.886, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9885/0.9885, allocations: 93.7 MB / 384.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002761/0.002761, allocations: 79.88 kB / 0.5199 GB, free: 1.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5322/0.535, allocations: 68.26 MB / 0.5866 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03328/0.5684, allocations: 30.92 MB / 0.6168 GB, free: 11.2 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.014/0.5824, allocations: 9.715 MB / 0.6263 GB, free: 1.453 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.584, allocations: 39.75 kB / 0.6263 GB, free: 1.414 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.5858, allocations: 0.524 MB / 0.6268 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003071/0.5889, allocations: 0.7956 MB / 0.6276 GB, free: 88 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.5913, allocations: 0.6946 MB / 0.6283 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.5941, allocations: 1.49 MB / 0.6297 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000695/0.5948, allocations: 293.7 kB / 0.63 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001719/0.5965, allocations: 0.6147 MB / 0.6306 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.5978, allocations: 0.5365 MB / 0.6311 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.5979, allocations: 76 kB / 0.6312 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.5999, allocations: 0.4995 MB / 0.6317 GB, free: 11.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002682/0.6002, allocations: 215.1 kB / 0.6319 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006958/0.6009, allocations: 0.5129 MB / 0.6324 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002872/0.6038, allocations: 1.402 MB / 0.6338 GB, free: 9.742 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.6038, allocations: 3.938 kB / 0.6338 GB, free: 9.738 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6038, allocations: 0 / 0.6338 GB, free: 9.738 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.6038, allocations: 0 / 0.6338 GB, free: 9.738 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00292/0.6067, allocations: 1.458 MB / 0.6352 GB, free: 8.219 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.6068, allocations: 8.031 kB / 0.6352 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.607, allocations: 122.7 kB / 0.6353 GB, free: 8.082 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002973/0.6073, allocations: 132.1 kB / 0.6354 GB, free: 7.953 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.6086, allocations: 0.7437 MB / 0.6362 GB, free: 7.168 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.244e-05/0.6087, allocations: 58 kB / 0.6362 GB, free: 7.113 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.6089, allocations: 83.89 kB / 0.6363 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001487/0.6104, allocations: 0.7916 MB / 0.6371 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.6104, allocations: 0 / 0.6371 GB, free: 6.219 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-05/0.6105, allocations: 32 kB / 0.6371 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.6105, allocations: 16 kB / 0.6371 GB, free: 6.172 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.6117, allocations: 0.6285 MB / 0.6377 GB, free: 5.547 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004977/0.6167, allocations: 3.73 MB / 0.6414 GB, free: 1.445 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.6179, allocations: 0.59 MB / 0.642 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005331/0.6185, allocations: 279.3 kB / 0.6422 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002964/0.6214, allocations: 2.539 MB / 0.6447 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007366/0.6222, allocations: 369.8 kB / 0.6451 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=63): time 2.345e-06/0.6222, allocations: 4 kB / 0.6451 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65): time 0.004099/0.6263, allocations: 1.949 MB / 0.647 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.644e-05/0.6264, allocations: 85.67 kB / 0.647 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008466/0.6273, allocations: 0.6376 MB / 0.6477 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.6273, allocations: 37.7 kB / 0.6477 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004401/0.6278, allocations: 448.6 kB / 0.6481 GB, free: 10 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.628, allocations: 238 kB / 0.6484 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002077/0.6282, allocations: 126.3 kB / 0.6485 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.6284, allocations: 326 kB / 0.6488 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.6289, allocations: 213.5 kB / 0.649 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.6294, allocations: 323.5 kB / 0.6493 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.6305, allocations: 0.5653 MB / 0.6499 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.6305, allocations: 0 / 0.6499 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001568/0.6321, allocations: 0.8074 MB / 0.6506 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.165e-05/0.6321, allocations: 33.7 kB / 0.6507 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.6321, allocations: 0 / 0.6507 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004066/0.6326, allocations: 105 kB / 0.6508 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.6331, allocations: 131.8 kB / 0.6509 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002459/0.6355, allocations: 1.981 MB / 0.6528 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.636, allocations: 27.98 kB / 0.6529 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.141e-05/0.6361, allocations: 23.98 kB / 0.6529 GB, free: 4.875 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004387/0.6365, allocations: 229.6 kB / 0.6531 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.6366, allocations: 95.36 kB / 0.6532 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.6385, allocations: 0.8544 MB / 0.654 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.6385, allocations: 8 kB / 0.654 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.6385, allocations: 4 kB / 0.654 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.6385, allocations: 7.984 kB / 0.654 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.6419, allocations: 1.609 MB / 0.6556 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.6419, allocations: 4 kB / 0.6556 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/0.6425, allocations: 112 kB / 0.6557 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003989/0.6429, allocations: 108.6 kB / 0.6558 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.007e-05/0.643, allocations: 19.98 kB / 0.6559 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/0.6457, allocations: 1.973 MB / 0.6578 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.6458, allocations: 0 / 0.6578 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.648, allocations: 1.082 MB / 0.6588 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.6484, allocations: 212.5 kB / 0.659 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/0.6486, allocations: 20 kB / 0.6591 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004787/0.6491, allocations: 31.92 kB / 0.6591 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.6493, allocations: 56.42 kB / 0.6591 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.391e-05/0.6494, allocations: 23.98 kB / 0.6592 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007116/0.6501, allocations: 459 kB / 0.6596 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6501, allocations: 0 / 0.6596 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00119/0.6513, allocations: 283.7 kB / 0.6599 GB, free: 13.42 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * 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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003257/0.6546, allocations: 1.882 MB / 0.6617 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001815/0.6564, allocations: 0.7757 MB / 0.6625 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/0.6564, allocations: 4 kB / 0.6625 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009969/0.6574, allocations: 469.6 kB / 0.6629 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.6588, allocations: 233.4 kB / 0.6631 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.6714, allocations: 6.635 MB / 0.6696 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009068/0.6723, allocations: 1.001 MB / 0.6706 GB, free: 2.137 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006555/0.673, allocations: 149.9 kB / 0.6707 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006496/0.6737, allocations: 367.3 kB / 0.6711 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of SimCode: time 1.352e-06/0.6737, allocations: 0 / 0.6711 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07993/0.7536, allocations: 22.63 MB / 0.6932 GB, free: 11.23 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.26/13.02, allocations: 0 / 0.6932 GB, free: 11.23 MB / 0.545 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches