Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0008994/0.0008994, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.000881/0.000881, allocations: 207.6 kB / 22.25 MB, free: 3.59 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.8858/0.8858, allocations: 230.6 MB / 256 MB, free: 9.609 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.03603/0.03603, allocations: 12.19 MB / 324.6 MB, free: 6.195 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.0003916/0.0003916, allocations: 27.95 kB / 384.1 MB, free: 10.62 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.518/1.518, allocations: 353.9 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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.001373/0.001373, allocations: 122.8 kB / 1.06 GB, free: 24.91 MB / 0.7137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1926, allocations: 134.9 MB / 1.192 GB, free: 7.535 MB / 0.823 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001552/0.1942, allocations: 0.7225 MB / 1.192 GB, free: 6.816 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1953, allocations: 1.113 MB / 1.193 GB, free: 5.691 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.418e-05/0.1953, allocations: 4 kB / 1.193 GB, free: 5.688 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.1953, allocations: 3.938 kB / 1.193 GB, free: 5.684 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.518e-05/0.1954, allocations: 15.86 kB / 1.193 GB, free: 5.668 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.1957, allocations: 51.83 kB / 1.194 GB, free: 5.617 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.1958, allocations: 71.78 kB / 1.194 GB, free: 5.547 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1959, allocations: 16.16 kB / 1.194 GB, free: 5.527 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.403e-05/0.196, allocations: 27.92 kB / 1.194 GB, free: 5.5 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.098e-05/0.196, allocations: 31.84 kB / 1.194 GB, free: 5.469 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.196, allocations: 8 kB / 1.194 GB, free: 5.461 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.846e-05/0.1961, allocations: 19.98 kB / 1.194 GB, free: 5.441 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.1961, allocations: 7.984 kB / 1.194 GB, free: 5.434 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.73e-05/0.1962, allocations: 27.86 kB / 1.194 GB, free: 5.406 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.1963, allocations: 83.91 kB / 1.194 GB, free: 5.324 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1963, allocations: 0 / 1.194 GB, free: 5.324 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1963, allocations: 0 / 1.194 GB, free: 5.324 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.1963, allocations: 0 / 1.194 GB, free: 5.324 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004526/0.1968, allocations: 306 kB / 1.194 GB, free: 4.996 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1968, allocations: 16.03 kB / 1.194 GB, free: 4.98 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.355e-05/0.1968, allocations: 34.75 kB / 1.194 GB, free: 4.938 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.227e-05/0.1969, allocations: 12.83 kB / 1.194 GB, free: 4.926 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.402e-05/0.197, allocations: 114.5 kB / 1.194 GB, free: 4.789 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.197, allocations: 8.375 kB / 1.194 GB, free: 4.781 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.197, allocations: 4.375 kB / 1.194 GB, free: 4.777 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.1971, allocations: 69.86 kB / 1.194 GB, free: 4.703 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1971, allocations: 4 kB / 1.194 GB, free: 4.699 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.1971, allocations: 3.984 kB / 1.194 GB, free: 4.695 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.1972, allocations: 0 / 1.194 GB, free: 4.695 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.933e-05/0.1972, allocations: 43.97 kB / 1.194 GB, free: 4.652 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004788/0.1977, allocations: 291.7 kB / 1.195 GB, free: 4.324 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.1979, allocations: 50.56 kB / 1.195 GB, free: 4.266 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.183e-05/0.1979, allocations: 28.95 kB / 1.195 GB, free: 4.234 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.1979, allocations: 4 kB / 1.195 GB, free: 4.23 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001554/0.1981, allocations: 79.38 kB / 1.195 GB, free: 4.141 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.1981, allocations: 0 / 1.195 GB, free: 4.141 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002539/0.1983, allocations: 129.6 kB / 1.195 GB, free: 4.008 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.1984, allocations: 55.41 kB / 1.195 GB, free: 3.941 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/0.1984, allocations: 121.8 kB / 1.195 GB, free: 3.812 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.1984, allocations: 25.7 kB / 1.195 GB, free: 3.781 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 4.273e-05/0.1985, allocations: 100.1 kB / 1.195 GB, free: 3.68 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.53e-05/0.1985, allocations: 15.89 kB / 1.195 GB, free: 3.664 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.1985, allocations: 33.7 kB / 1.195 GB, free: 3.625 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.795e-05/0.1986, allocations: 322.8 kB / 1.196 GB, free: 3.301 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.278e-05/0.1987, allocations: 23.98 kB / 1.196 GB, free: 3.277 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.45e-05/0.1988, allocations: 81.91 kB / 1.196 GB, free: 3.176 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001255/0.1989, allocations: 105.9 kB / 1.196 GB, free: 3.051 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1989, allocations: 0 / 1.196 GB, free: 3.051 MB / 0.823 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001709/0.1991, allocations: 141.6 kB / 1.196 GB, free: 2.906 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1991, allocations: 4 kB / 1.196 GB, free: 2.902 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1991, allocations: 0 / 1.196 GB, free: 2.902 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1991, allocations: 4 kB / 1.196 GB, free: 2.898 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.653e-05/0.1992, allocations: 23.92 kB / 1.196 GB, free: 2.875 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.463e-06/0.1992, allocations: 4 kB / 1.196 GB, free: 2.871 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.345e-05/0.1992, allocations: 15.92 kB / 1.196 GB, free: 2.855 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.1992, allocations: 4 kB / 1.196 GB, free: 2.852 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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 7.129e-05/0.1993, allocations: 127.4 kB / 1.196 GB, free: 2.719 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1993, allocations: 8.016 kB / 1.196 GB, free: 2.711 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.1993, allocations: 16.36 kB / 1.196 GB, free: 2.691 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1993, allocations: 0 / 1.196 GB, free: 2.691 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1993, allocations: 0 / 1.196 GB, free: 2.691 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1993, allocations: 3.984 kB / 1.196 GB, free: 2.688 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.1996, allocations: 337.8 kB / 1.196 GB, free: 2.309 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1996, allocations: 7.875 kB / 1.196 GB, free: 2.301 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.924e-05/0.1997, allocations: 11.98 kB / 1.197 GB, free: 2.289 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1997, allocations: 0 / 1.197 GB, free: 2.289 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1997, allocations: 4 kB / 1.197 GB, free: 2.285 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.1997, allocations: 3.938 kB / 1.197 GB, free: 2.281 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1997, allocations: 0 / 1.197 GB, free: 2.281 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.1998, allocations: 199.6 kB / 1.197 GB, free: 2.07 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.106e-05/0.1999, allocations: 11.95 kB / 1.197 GB, free: 2.059 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.056e-05/0.1999, allocations: 0 / 1.197 GB, free: 2.059 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.223e-05/0.1999, allocations: 11.92 kB / 1.197 GB, free: 2.047 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.1999, allocations: 7.984 kB / 1.197 GB, free: 2.039 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.2, allocations: 0 / 1.197 GB, free: 2.039 MB / 0.823 GB Notification: Performance of sorting global known variables: time 4.004e-05/0.2, allocations: 107.2 kB / 1.197 GB, free: 1.934 MB / 0.823 GB Notification: Performance of sort global known variables: time 5e-08/0.2, allocations: 0 / 1.197 GB, free: 1.934 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0001773/0.2002, allocations: 19.88 kB / 1.197 GB, free: 1.914 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004142/0.2006, allocations: 0.7281 MB / 1.198 GB, free: 1.16 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001861/0.2008, allocations: 84.05 kB / 1.198 GB, free: 1.078 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2008, allocations: 0 / 1.198 GB, free: 1.078 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 5.756e-05/0.2008, allocations: 31.92 kB / 1.198 GB, free: 1.047 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001962/0.201, allocations: 15.92 kB / 1.198 GB, free: 1.031 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001102/0.2021, allocations: 1.521 MB / 1.199 GB, free: 15.39 MB / 0.8387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.718e-05/0.2022, allocations: 79.33 kB / 1.199 GB, free: 15.29 MB / 0.8387 GB Notification: Performance of simCode: alias equations: time 2.885e-05/0.2022, allocations: 4 kB / 1.199 GB, free: 15.29 MB / 0.8387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.808e-05/0.2022, allocations: 23.42 kB / 1.199 GB, free: 15.27 MB / 0.8387 GB Notification: Performance of SimCode: time 6.91e-07/0.2022, allocations: 0 / 1.199 GB, free: 15.27 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01581/0.218, allocations: 2.684 MB / 1.202 GB, free: 12.73 MB / 0.8387 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.995/6.213, allocations: 4.656 kB / 1.202 GB, free: 12.73 MB / 0.8387 GB " [Timeout remaining time 654] (rm -f AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 AixLib_AixLib_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > AixLib_AixLib.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.187865411862731] Failed to read output from testmodel.py, exit status != 0: 6.287576483562589 6.295525881 6.097577053 Calling exit ...