Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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.0008718/0.0008718, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008615/0.0008615, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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.9159/0.9159, allocations: 177.1 MB / 202.8 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7413/0.7413, allocations: 154.6 MB / 413.7 MB, free: 0.8555 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.685e-06/2.685e-06, allocations: 0 / 0.618 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.345e-05, allocations: 5.094 kB / 0.6181 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001389/0.001413, allocations: 0.7213 MB / 0.6188 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.001058/0.00247, allocations: 1.085 MB / 0.6198 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.512e-05/0.002516, allocations: 0 / 0.6198 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 3.046e-05/0.002546, allocations: 7.875 kB / 0.6198 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 6.692e-05/0.002613, allocations: 15.86 kB / 0.6198 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.002901, allocations: 47.77 kB / 0.6199 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.003001, allocations: 83.69 kB / 0.62 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 9.455e-05/0.003096, allocations: 16.19 kB / 0.62 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 7.445e-05/0.00317, allocations: 35.91 kB / 0.62 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 4.461e-05/0.003215, allocations: 27.95 kB / 0.62 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.00323, allocations: 4 kB / 0.62 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 5.717e-05/0.003287, allocations: 23.92 kB / 0.6201 GB, free: 10.59 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 2.086e-05/0.003308, allocations: 19.91 kB / 0.6201 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.003336, allocations: 16 kB / 0.6201 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.003462, allocations: 87.72 kB / 0.6202 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.003463, allocations: 0 / 0.6202 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.673e-06/0.003465, allocations: 3.984 kB / 0.6202 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.003469, allocations: 4 kB / 0.6202 GB, free: 10.46 MB / 0.5417 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.0003789/0.003848, allocations: 310 kB / 0.6205 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.003882, allocations: 9.469 kB / 0.6205 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.959e-05/0.003912, allocations: 34.75 kB / 0.6205 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.515e-05/0.003937, allocations: 8.891 kB / 0.6205 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.418e-05/0.004011, allocations: 117.7 kB / 0.6207 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.004021, allocations: 4.375 kB / 0.6207 GB, free: 9.926 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.004034, allocations: 12.36 kB / 0.6207 GB, free: 9.914 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.004162, allocations: 70.16 kB / 0.6207 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.004168, allocations: 4.188 kB / 0.6207 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.376e-06/0.004177, allocations: 384 / 0.6207 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.004182, allocations: 3.938 kB / 0.6207 GB, free: 9.832 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.429e-05/0.004276, allocations: 43.97 kB / 0.6208 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004069/0.004683, allocations: 275.9 kB / 0.621 GB, free: 9.477 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.004792, allocations: 58.48 kB / 0.6211 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.875e-05/0.004841, allocations: 32.91 kB / 0.6211 GB, free: 9.375 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.004859, allocations: 4 kB / 0.6211 GB, free: 9.371 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.004995, allocations: 83.36 kB / 0.6212 GB, free: 9.277 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/0.004996, allocations: 0 / 0.6212 GB, free: 9.277 MB / 0.5417 GB Notification: Performance of matching and sorting (n=7): time 0.000256/0.005252, allocations: 125.6 kB / 0.6213 GB, free: 9.148 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.005285, allocations: 55.41 kB / 0.6214 GB, free: 9.082 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.823e-05/0.005353, allocations: 133.7 kB / 0.6215 GB, free: 8.941 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.227e-05/0.005365, allocations: 25.7 kB / 0.6215 GB, free: 8.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.839e-05/0.005404, allocations: 88.14 kB / 0.6216 GB, free: 8.82 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.005419, allocations: 15.91 kB / 0.6216 GB, free: 8.805 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.005453, allocations: 29.7 kB / 0.6217 GB, free: 8.77 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001842/0.005637, allocations: 322.8 kB / 0.622 GB, free: 8.445 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.753e-05/0.005695, allocations: 27.97 kB / 0.622 GB, free: 8.418 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.25e-05/0.005767, allocations: 79.17 kB / 0.6221 GB, free: 8.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.005892, allocations: 109.9 kB / 0.6222 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.005894, allocations: 0 / 0.6222 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001643/0.006059, allocations: 141.4 kB / 0.6223 GB, free: 8.047 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.00607, allocations: 4 kB / 0.6223 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.006074, allocations: 4 kB / 0.6223 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.006085, allocations: 0 / 0.6223 GB, free: 8.039 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.344e-05/0.006169, allocations: 19.98 kB / 0.6223 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.006174, allocations: 0 / 0.6223 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.22e-05/0.006216, allocations: 15.94 kB / 0.6224 GB, free: 8.004 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.006226, allocations: 4.531 kB / 0.6224 GB, free: 8 MB / 0.5417 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 8.202e-05/0.006308, allocations: 134.6 kB / 0.6225 GB, free: 7.859 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.006316, allocations: 7.953 kB / 0.6225 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.162e-05/0.006338, allocations: 12.42 kB / 0.6225 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.00634, allocations: 4 kB / 0.6225 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.006344, allocations: 0 / 0.6225 GB, free: 7.832 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.006348, allocations: 4 kB / 0.6225 GB, free: 7.828 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002738/0.006622, allocations: 341.5 kB / 0.6228 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.006623, allocations: 0 / 0.6228 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.226e-05/0.006645, allocations: 11.98 kB / 0.6229 GB, free: 7.434 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.006647, allocations: 0 / 0.6229 GB, free: 7.434 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.006654, allocations: 4 kB / 0.6229 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.006655, allocations: 0 / 0.6229 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.006656, allocations: 0 / 0.6229 GB, free: 7.43 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.006806, allocations: 207.4 kB / 0.6231 GB, free: 7.211 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-06/0.006813, allocations: 7.891 kB / 0.6231 GB, free: 7.203 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.006825, allocations: 4 kB / 0.6231 GB, free: 7.199 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.071e-05/0.006866, allocations: 11.98 kB / 0.6231 GB, free: 7.188 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.366e-05/0.0069, allocations: 7.984 kB / 0.6231 GB, free: 7.18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.006906, allocations: 11.88 kB / 0.6231 GB, free: 7.168 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.55e-05/0.006941, allocations: 98.27 kB / 0.6232 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.006941, allocations: 0 / 0.6232 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002108/0.007152, allocations: 16 kB / 0.6232 GB, free: 7.059 MB / 0.5417 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.0003558/0.007508, allocations: 0.7319 MB / 0.6239 GB, free: 6.301 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001581/0.007666, allocations: 83.81 kB / 0.624 GB, free: 6.219 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.007668, allocations: 4 kB / 0.624 GB, free: 6.215 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 5.5e-05/0.007723, allocations: 27.98 kB / 0.624 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.007906, allocations: 18.11 kB / 0.6241 GB, free: 6.172 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.009046, allocations: 1.524 MB / 0.6255 GB, free: 4.52 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.219e-05/0.009098, allocations: 79.02 kB / 0.6256 GB, free: 4.422 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.789e-05/0.009126, allocations: 7.984 kB / 0.6256 GB, free: 4.414 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.597e-05/0.009162, allocations: 24.5 kB / 0.6256 GB, free: 4.391 MB / 0.5417 GB Notification: Performance of SimCode: time 4.81e-07/0.009162, allocations: 4 kB / 0.6257 GB, free: 4.387 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01622/0.02538, allocations: 2.807 MB / 0.6284 GB, free: 1.754 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.765/6.79, allocations: 5.062 kB / 0.6284 GB, free: 1.75 MB / 0.5417 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.583886261098087] Failed to read output from testmodel.py, exit status != 0: 6.875951964408159 6.883283408 6.878202126 Calling exit ...