Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004758/0.0004758, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0004295/0.0004295, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.3506/0.3506, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.2181/0.2181, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.136e-06/3.136e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.715e-05/2.029e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.09993/0.09995, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.03079/0.1307, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.002245/0.133, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.006171/0.1392, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.01135/0.1505, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.005568/0.1561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.00487/0.161, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.1623, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.005803/0.1681, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.1709, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0004229/0.1713, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.006379/0.1777, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.000854/0.1786, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.002021/0.1806, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.008511/0.1891, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0003774/0.1895, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 6.623e-06/0.1895, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 2.743e-05/0.1895, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.01458/0.2041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001772/0.2043, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001283/0.2055, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003918/0.2095, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.007454/0.2169, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.2172, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006531/0.2178, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.009449/0.2273, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 9.109e-05/0.2274, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004754/0.2278, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.485e-05/0.2279, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009251/0.2372, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02236/0.2595, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.006797/0.2663, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.003464/0.2698, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 0.01644/0.2862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004517/0.2907, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=139): time 0.0001732/0.2909, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=139): time 0.01399/0.3049, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001855/0.3051, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006691/0.3118, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005781/0.3124, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.001614/0.314, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0009594/0.3149, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001671/0.3166, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003275/0.3169, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.003008/0.3199, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.003682/0.3236, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.007179/0.3308, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.669e-05/0.3308, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=158) (initialization): time 0.01124/0.3421, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.3422, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-05/0.3422, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.3433, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002382/0.3457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009061/0.3548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.3565, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005031/0.357, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002955/0.3599, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001616/0.3616, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/0.3767, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/0.3768, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/0.3768, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.005e-05/0.3768, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02129/0.3981, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/0.3981, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/0.4005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.4016, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004836/0.402, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009179/0.4112, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.4112, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01468/0.4259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.003892/0.4298, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001137/0.4309, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.4325, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001541/0.4341, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004816/0.4345, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.004489/0.439, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 8.486e-05/0.4391, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.004963/0.4441, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (149): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01826/0.4623, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.008061/0.4704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.4704, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.004521/0.4749, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009033/0.484, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06956/0.5535, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003096/0.5566, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.00356/0.5602, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005345/0.5655, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.001515/0.567, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.02168/0.5887, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.0131/0.6018, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.08618/0.688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 1.669e-05/0.688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 2.021e-05/0.688, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0.3 MB unzipped): time 0.0006599/0.6887, allocations: 0 / 0, free: 0 / 0 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 659] simulate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,startTime=0,stopTime=20,tolerance=1e-06,numberOfIntervals=1000,outputFormat="mat",variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=20 -tolerance=1e-06 -stepSize=0.02 -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat",resimulateExecutable="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches simulate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,startTime=0,stopTime=20,tolerance=1e-06,numberOfIntervals=1000,outputFormat="mat",variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=20 -tolerance=1e-06 -stepSize=0.02 -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat -s fmi3:me:daskr",resimulateExecutable="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_me_res.mat failed! " [Timeout remaining time 660] Reference file matches simulate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,startTime=0,stopTime=20,tolerance=1e-06,numberOfIntervals=1000,outputFormat="mat",variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=20 -tolerance=1e-06 -stepSize=0.02 -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat -s fmi3:cs",resimulateExecutable="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_SpecificValveType.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_cs_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.408856309019029]