Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006926/0.0006926, allocations: 101.5 kB / 18.95 MB, free: 1.18 MB / 13.93 MB " [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.0007319/0.0007319, allocations: 214.5 kB / 22.25 MB, free: 3.719 MB / 13.93 MB " [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.8671/0.8671, allocations: 230.6 MB / 256 MB, free: 9.586 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03667/0.03667, allocations: 12.19 MB / 324.6 MB, free: 6.082 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0004072/0.0004072, allocations: 27.89 kB / 384.1 MB, free: 10.5 MB / 314.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.527/1.527, allocations: 353.8 MB / 0.7787 GB, free: 4.574 MB / 0.5105 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.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(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 122.5 kB / 1.06 GB, free: 24.91 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1897, allocations: 134.9 MB / 1.192 GB, free: 7.535 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001362/0.1911, allocations: 0.7185 MB / 1.192 GB, free: 6.82 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1921, allocations: 1.203 MB / 1.194 GB, free: 5.605 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.894e-05/0.1922, allocations: 0 / 1.194 GB, free: 5.605 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.1922, allocations: 11.88 kB / 1.194 GB, free: 5.594 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/0.1923, allocations: 7.922 kB / 1.194 GB, free: 5.586 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.1927, allocations: 142.1 kB / 1.194 GB, free: 5.449 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.1928, allocations: 127.7 kB / 1.194 GB, free: 5.324 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.584e-05/0.1929, allocations: 20.17 kB / 1.194 GB, free: 5.301 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 7.601e-05/0.193, allocations: 43.91 kB / 1.194 GB, free: 5.258 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 7.583e-05/0.1931, allocations: 55.73 kB / 1.194 GB, free: 5.203 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1931, allocations: 12 kB / 1.194 GB, free: 5.191 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.906e-05/0.1931, allocations: 24 kB / 1.194 GB, free: 5.168 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.1932, allocations: 19.92 kB / 1.194 GB, free: 5.148 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 4.991e-05/0.1932, allocations: 39.89 kB / 1.194 GB, free: 5.109 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.1934, allocations: 131.8 kB / 1.194 GB, free: 4.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1934, allocations: 7.938 kB / 1.194 GB, free: 4.973 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1934, allocations: 0 / 1.194 GB, free: 4.973 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.1934, allocations: 0 / 1.194 GB, free: 4.973 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004427/0.1938, allocations: 343.7 kB / 1.194 GB, free: 4.602 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1939, allocations: 8.031 kB / 1.194 GB, free: 4.594 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.788e-05/0.1939, allocations: 38.73 kB / 1.195 GB, free: 4.547 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.586e-05/0.194, allocations: 12.89 kB / 1.195 GB, free: 4.535 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.287e-05/0.194, allocations: 114.4 kB / 1.195 GB, free: 4.398 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.194, allocations: 8.375 kB / 1.195 GB, free: 4.391 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.1941, allocations: 20.36 kB / 1.195 GB, free: 4.371 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.1942, allocations: 77.91 kB / 1.195 GB, free: 4.289 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.1942, allocations: 0 / 1.195 GB, free: 4.289 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.1942, allocations: 4 kB / 1.195 GB, free: 4.285 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1942, allocations: 0 / 1.195 GB, free: 4.285 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.919e-05/0.1943, allocations: 47.95 kB / 1.195 GB, free: 4.238 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003728/0.1947, allocations: 291.8 kB / 1.195 GB, free: 3.91 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001147/0.1948, allocations: 58.55 kB / 1.195 GB, free: 3.844 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.144e-05/0.1949, allocations: 32.95 kB / 1.195 GB, free: 3.809 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1949, allocations: 0 / 1.195 GB, free: 3.809 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001683/0.195, allocations: 87.39 kB / 1.195 GB, free: 3.711 MB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.195, allocations: 0 / 1.195 GB, free: 3.711 MB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0002806/0.1953, allocations: 149.6 kB / 1.195 GB, free: 3.559 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.1954, allocations: 59.41 kB / 1.195 GB, free: 3.488 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.331e-05/0.1954, allocations: 117.8 kB / 1.196 GB, free: 3.363 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.1954, allocations: 29.7 kB / 1.196 GB, free: 3.328 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.078e-05/0.1955, allocations: 96.08 kB / 1.196 GB, free: 3.23 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.1955, allocations: 23.83 kB / 1.196 GB, free: 3.207 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.1956, allocations: 41.7 kB / 1.196 GB, free: 3.16 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.173e-05/0.1956, allocations: 322.8 kB / 1.196 GB, free: 2.836 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.1957, allocations: 85.61 kB / 1.196 GB, free: 2.746 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.1958, allocations: 126.7 kB / 1.196 GB, free: 2.598 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.196, allocations: 146.8 kB / 1.196 GB, free: 2.43 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.196, allocations: 4 kB / 1.196 GB, free: 2.426 MB / 0.823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002575/0.1962, allocations: 240.8 kB / 1.197 GB, free: 2.172 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.1963, allocations: 41.69 kB / 1.197 GB, free: 2.125 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1963, allocations: 0 / 1.197 GB, free: 2.125 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1963, allocations: 7.938 kB / 1.197 GB, free: 2.117 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.455e-05/0.1964, allocations: 11.98 kB / 1.197 GB, free: 2.105 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1964, allocations: 7.938 kB / 1.197 GB, free: 2.098 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1965, allocations: 40.06 kB / 1.197 GB, free: 2.059 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.1965, allocations: 15.94 kB / 1.197 GB, free: 2.043 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.539e-05/0.1965, allocations: 120 kB / 1.197 GB, free: 1.918 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.686e-06/0.1966, allocations: 7.953 kB / 1.197 GB, free: 1.91 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.1967, allocations: 121.9 kB / 1.197 GB, free: 1.781 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.1967, allocations: 4 kB / 1.197 GB, free: 1.777 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1967, allocations: 0 / 1.197 GB, free: 1.777 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1967, allocations: 4 kB / 1.197 GB, free: 1.773 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000502/0.1972, allocations: 349.5 kB / 1.197 GB, free: 1.383 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1972, allocations: 0 / 1.197 GB, free: 1.383 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.214e-05/0.1973, allocations: 11.98 kB / 1.197 GB, free: 1.371 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.1973, allocations: 0 / 1.197 GB, free: 1.371 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.1973, allocations: 4 kB / 1.197 GB, free: 1.367 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1973, allocations: 3.938 kB / 1.197 GB, free: 1.363 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1973, allocations: 7.922 kB / 1.197 GB, free: 1.355 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.1974, allocations: 219.4 kB / 1.198 GB, free: 1.125 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.204e-06/0.1975, allocations: 3.953 kB / 1.198 GB, free: 1.121 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.1975, allocations: 8 kB / 1.198 GB, free: 1.113 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.203e-05/0.1975, allocations: 11.92 kB / 1.198 GB, free: 1.102 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.1975, allocations: 3.984 kB / 1.198 GB, free: 1.098 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.1975, allocations: 4 kB / 1.198 GB, free: 1.094 MB / 0.823 GB Notification: Performance of sorting global known variables: time 3.367e-05/0.1976, allocations: 95.2 kB / 1.198 GB, free: 1 MB / 0.823 GB Notification: Performance of sort global known variables: time 4e-08/0.1976, allocations: 0 / 1.198 GB, free: 1 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001748/0.1978, allocations: 24 kB / 1.198 GB, free: 0.9766 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003651/0.1981, allocations: 0.7559 MB / 1.198 GB, free: 200 kB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002502/0.1984, allocations: 197 kB / 1.199 GB, free: 15.98 MB / 0.8387 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1984, allocations: 0 / 1.199 GB, free: 15.98 MB / 0.8387 GB Notification: Performance of simCode: created simulation system equations: time 6.106e-05/0.1984, allocations: 43.83 kB / 1.199 GB, free: 15.94 MB / 0.8387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.1986, allocations: 25.73 kB / 1.199 GB, free: 15.92 MB / 0.8387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.2, allocations: 1.827 MB / 1.2 GB, free: 13.95 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.592e-05/0.2, allocations: 83.27 kB / 1.201 GB, free: 13.85 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.83e-05/0.2, allocations: 4 kB / 1.201 GB, free: 13.85 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.763e-05/0.2001, allocations: 19.44 kB / 1.201 GB, free: 13.83 MB / 0.8387 GB Notification: Performance of SimCode: time 5.41e-07/0.2001, allocations: 0 / 1.201 GB, free: 13.83 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01605/0.2161, allocations: 3.225 MB / 1.204 GB, free: 10.75 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.952/6.168, allocations: 5.812 kB / 1.204 GB, free: 10.75 MB / 0.8387 GB " [Timeout remaining time 654] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 AixLib_AixLib_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.15288352407515] Failed to read output from testmodel.py, exit status != 0: 6.24151910468936 6.250597207 6.055494789 Calling exit ...