Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.0008464/0.0008464, 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.0007557/0.0007557, allocations: 208.1 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.9145/0.9145, allocations: 230.6 MB / 256 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7669/0.7669, allocations: 203.5 MB / 0.5039 GB, free: 10.71 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.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(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.0009271/0.0009271, allocations: 70.78 kB / 0.7178 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5315/0.5324, allocations: 102 MB / 0.8174 GB, free: 1.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001531/0.534, allocations: 0.748 MB / 0.8181 GB, free: 0.7578 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.535, allocations: 1.181 MB / 0.8192 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.652e-05/0.535, allocations: 2.219 kB / 0.8192 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.085e-05/0.535, allocations: 9.234 kB / 0.8193 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.429e-05/0.5351, allocations: 7.781 kB / 0.8193 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.5356, allocations: 142.5 kB / 0.8194 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.5357, allocations: 129.7 kB / 0.8195 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.5358, allocations: 17.2 kB / 0.8195 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.526e-05/0.5359, allocations: 44.95 kB / 0.8196 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.87e-05/0.536, allocations: 53.8 kB / 0.8196 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.536, allocations: 12.75 kB / 0.8196 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.933e-05/0.5361, allocations: 22.95 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.492e-05/0.5361, allocations: 17.62 kB / 0.8197 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.504e-05/0.5362, allocations: 33.98 kB / 0.8197 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001836/0.5363, allocations: 136.7 kB / 0.8198 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.5363, allocations: 0 / 0.8198 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.693e-06/0.5363, allocations: 3.719 kB / 0.8198 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.5364, allocations: 4 kB / 0.8199 GB, free: 15.63 MB / 0.6198 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.0004871/0.5368, allocations: 345.8 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.5369, allocations: 11.48 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.5369, allocations: 36.25 kB / 0.8202 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.537, allocations: 13 kB / 0.8202 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.5374, allocations: 109.9 kB / 0.8203 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.5374, allocations: 8.984 kB / 0.8204 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.698e-05/0.5374, allocations: 8.438 kB / 0.8204 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.5376, allocations: 77.67 kB / 0.8204 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.5376, allocations: 2.828 kB / 0.8204 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.5376, allocations: 4 kB / 0.8204 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.5376, allocations: 4.625 kB / 0.8204 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.5377, allocations: 45.97 kB / 0.8205 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.5382, allocations: 297.3 kB / 0.8208 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.5383, allocations: 52.86 kB / 0.8208 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.796e-05/0.5384, allocations: 35.84 kB / 0.8209 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.5384, allocations: 1.844 kB / 0.8209 GB, free: 14.74 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.5386, allocations: 97.03 kB / 0.821 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 1.382e-06/0.5386, allocations: 0 / 0.821 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.00029/0.5389, allocations: 141.6 kB / 0.8211 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.5389, allocations: 63.75 kB / 0.8211 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.454e-05/0.539, allocations: 121.6 kB / 0.8213 GB, free: 14.44 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.539, allocations: 33.75 kB / 0.8213 GB, free: 14.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.27e-05/0.5391, allocations: 88.83 kB / 0.8214 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.5391, allocations: 25 kB / 0.8214 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.077e-05/0.5391, allocations: 40.19 kB / 0.8214 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.352e-05/0.5392, allocations: 321.9 kB / 0.8218 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.5393, allocations: 83.17 kB / 0.8218 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.5394, allocations: 122.4 kB / 0.8219 GB, free: 13.81 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001751/0.5396, allocations: 151.8 kB / 0.8221 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.5396, allocations: 0.5625 kB / 0.8221 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002793/0.5399, allocations: 245.6 kB / 0.8223 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.5399, allocations: 38.41 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.5399, allocations: 1.688 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.5399, allocations: 7.844 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.003e-05/0.54, allocations: 12.59 kB / 0.8224 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.54, allocations: 6.094 kB / 0.8224 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.5401, allocations: 35.53 kB / 0.8224 GB, free: 13.51 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.5402, allocations: 15.52 kB / 0.8224 GB, free: 13.5 MB / 0.6198 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 7.343e-05/0.5402, allocations: 121.8 kB / 0.8226 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.5402, allocations: 7.859 kB / 0.8226 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.5405, allocations: 124.4 kB / 0.8227 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.5405, allocations: 1.625 kB / 0.8227 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5405, allocations: 0 / 0.8227 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5405, allocations: 0.6562 kB / 0.8227 GB, free: 13.32 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.5408, allocations: 352.1 kB / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5408, allocations: 0.875 kB / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.353e-05/0.5408, allocations: 10.86 kB / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.5408, allocations: 0 / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.5408, allocations: 0.9844 kB / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.5408, allocations: 4.656 kB / 0.823 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5408, allocations: 6.906 kB / 0.823 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.541, allocations: 216.2 kB / 0.8232 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.243e-05/0.541, allocations: 18.7 kB / 0.8233 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.541, allocations: 9.25 kB / 0.8233 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.236e-05/0.5411, allocations: 10.03 kB / 0.8233 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.5411, allocations: 6.656 kB / 0.8233 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.5411, allocations: 2.5 kB / 0.8233 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.986e-05/0.5411, allocations: 90.94 kB / 0.8234 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5411, allocations: 0 / 0.8234 GB, free: 12.74 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001876/0.5413, allocations: 28.44 kB / 0.8234 GB, free: 12.74 MB / 0.6198 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.0004447/0.5418, allocations: 0.7518 MB / 0.8241 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002609/0.542, allocations: 187 kB / 0.8243 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.542, allocations: 0 / 0.8243 GB, free: 11.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.205e-05/0.5421, allocations: 45.77 kB / 0.8244 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/0.5423, allocations: 16.55 kB / 0.8244 GB, free: 11.91 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.5438, allocations: 1.84 MB / 0.8262 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.826e-05/0.5439, allocations: 81.03 kB / 0.8263 GB, free: 10.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.182e-05/0.5439, allocations: 10.22 kB / 0.8263 GB, free: 10.24 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.982e-05/0.5439, allocations: 20.33 kB / 0.8263 GB, free: 10.23 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.5439, allocations: 1.312 kB / 0.8263 GB, free: 10.23 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.56, allocations: 3.217 MB / 0.8294 GB, free: 9.258 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.516/7.076, allocations: 11.7 kB / 0.8294 GB, free: 9.254 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.058869504835457] Failed to read output from testmodel.py, exit status != 0: 7.154565600212663 7.170483596 6.632096023 Calling exit ...