Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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.0007628/0.0007628, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008475/0.0008475, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8794/0.8794, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.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.705/0.705, allocations: 154.6 MB / 413.7 MB, free: 0.8125 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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 4.0.0/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 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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="IDEAS_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_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.134e-06/2.134e-06, allocations: 0 / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.558e-05, allocations: 5.719 kB / 0.6181 GB, free: 13.65 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001147/0.001163, allocations: 0.7196 MB / 0.6188 GB, free: 12.93 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009621/0.002125, allocations: 1.104 MB / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.313e-05/0.002168, allocations: 0 / 0.6199 GB, free: 11.81 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 2.884e-05/0.002197, allocations: 7.938 kB / 0.6199 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.249e-05/0.002259, allocations: 11.86 kB / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.002535, allocations: 51.75 kB / 0.62 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.76e-05/0.002633, allocations: 75.78 kB / 0.62 GB, free: 11.67 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.302e-05/0.002726, allocations: 20.16 kB / 0.6201 GB, free: 11.64 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 7.14e-05/0.002797, allocations: 35.91 kB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.23e-05/0.002839, allocations: 31.89 kB / 0.6201 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.002853, allocations: 4 kB / 0.6201 GB, free: 11.57 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 4.75e-05/0.002901, allocations: 16 kB / 0.6201 GB, free: 11.56 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/0.002919, allocations: 11.98 kB / 0.6202 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.002955, allocations: 27.91 kB / 0.6202 GB, free: 11.52 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.003073, allocations: 83.73 kB / 0.6203 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.003074, allocations: 0 / 0.6203 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.092e-06/0.003075, allocations: 0 / 0.6203 GB, free: 11.44 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.426e-06/0.003079, allocations: 0 / 0.6203 GB, free: 11.44 MB / 0.5886 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.0003725/0.003451, allocations: 306 kB / 0.6206 GB, free: 11.11 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.003486, allocations: 8.031 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.163e-05/0.003517, allocations: 42.73 kB / 0.6206 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.003544, allocations: 8.891 kB / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.361e-05/0.003618, allocations: 116.8 kB / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.649e-06/0.003627, allocations: 384 / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.003639, allocations: 8.375 kB / 0.6207 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.003764, allocations: 66.22 kB / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.003771, allocations: 192 / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-06/0.003779, allocations: 4.375 kB / 0.6208 GB, free: 10.82 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.003784, allocations: 11.88 kB / 0.6208 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.847e-05/0.003873, allocations: 51.83 kB / 0.6209 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003981/0.004271, allocations: 279.8 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.004374, allocations: 58.58 kB / 0.6212 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.81e-05/0.004422, allocations: 32.91 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.004439, allocations: 4 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/0.004556, allocations: 75.38 kB / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.004557, allocations: 0 / 0.6213 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.000245/0.004802, allocations: 125.6 kB / 0.6214 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.004835, allocations: 59.41 kB / 0.6215 GB, free: 10.05 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.131e-05/0.004906, allocations: 121.8 kB / 0.6216 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.004919, allocations: 33.7 kB / 0.6216 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.004961, allocations: 92.08 kB / 0.6217 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.004976, allocations: 19.89 kB / 0.6217 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.00501, allocations: 29.7 kB / 0.6217 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.231e-05/0.005083, allocations: 318.8 kB / 0.622 GB, free: 9.418 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.611e-05/0.005139, allocations: 27.97 kB / 0.6221 GB, free: 9.391 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.885e-05/0.005207, allocations: 69.98 kB / 0.6221 GB, free: 9.301 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.005333, allocations: 117.8 kB / 0.6223 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.005334, allocations: 0 / 0.6223 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001603/0.005495, allocations: 133.5 kB / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.005507, allocations: 8 kB / 0.6224 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.005511, allocations: 0 / 0.6224 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.005522, allocations: 4 kB / 0.6224 GB, free: 9.016 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.046e-05/0.005593, allocations: 19.97 kB / 0.6224 GB, free: 8.996 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.005598, allocations: 3.938 kB / 0.6224 GB, free: 8.992 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.76e-05/0.005636, allocations: 11.94 kB / 0.6224 GB, free: 8.98 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.005645, allocations: 7.938 kB / 0.6224 GB, free: 8.973 MB / 0.5886 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 6.337e-05/0.005709, allocations: 130.9 kB / 0.6226 GB, free: 8.836 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-06/0.005716, allocations: 7.953 kB / 0.6226 GB, free: 8.828 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.916e-05/0.005735, allocations: 4.438 kB / 0.6226 GB, free: 8.82 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.005737, allocations: 7.984 kB / 0.6226 GB, free: 8.812 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.005741, allocations: 0 / 0.6226 GB, free: 8.812 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.005744, allocations: 0 / 0.6226 GB, free: 8.812 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/0.006008, allocations: 345.5 kB / 0.6229 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.006009, allocations: 0 / 0.6229 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-05/0.006033, allocations: 16 kB / 0.6229 GB, free: 8.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.006034, allocations: 4 kB / 0.6229 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.006042, allocations: 3.984 kB / 0.6229 GB, free: 8.402 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.62e-07/0.006042, allocations: 0 / 0.6229 GB, free: 8.402 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.006043, allocations: 0 / 0.6229 GB, free: 8.402 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.006184, allocations: 203.3 kB / 0.6231 GB, free: 8.188 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-06/0.006191, allocations: 7.953 kB / 0.6231 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.878e-06/0.006201, allocations: 3.984 kB / 0.6231 GB, free: 8.176 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.749e-05/0.006239, allocations: 4 kB / 0.6231 GB, free: 8.172 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.006269, allocations: 11.98 kB / 0.6232 GB, free: 8.16 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.006274, allocations: 7.938 kB / 0.6232 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.293e-05/0.006307, allocations: 91.27 kB / 0.6232 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.006307, allocations: 0 / 0.6232 GB, free: 8.062 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001671/0.006475, allocations: 19.94 kB / 0.6233 GB, free: 8.043 MB / 0.5886 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.0003476/0.006822, allocations: 0.7397 MB / 0.624 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.006983, allocations: 79.88 kB / 0.6241 GB, free: 7.203 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.006986, allocations: 4 kB / 0.6241 GB, free: 7.199 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/0.007042, allocations: 36.03 kB / 0.6241 GB, free: 7.164 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000187/0.007229, allocations: 13.97 kB / 0.6241 GB, free: 7.152 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.008402, allocations: 1.521 MB / 0.6256 GB, free: 5.508 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.493e-05/0.008447, allocations: 71.33 kB / 0.6257 GB, free: 5.418 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.436e-05/0.008472, allocations: 8 kB / 0.6257 GB, free: 5.41 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.831e-05/0.00851, allocations: 28.48 kB / 0.6257 GB, free: 5.383 MB / 0.5886 GB Notification: Performance of SimCode: time 5.21e-07/0.00851, allocations: 0 / 0.6257 GB, free: 5.383 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01406/0.02257, allocations: 2.796 MB / 0.6284 GB, free: 2.75 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.998/7.021, allocations: 15.45 kB / 0.6285 GB, free: 2.742 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.700840312056243] Failed to read output from testmodel.py, exit status != 0: 7.101457907818258 7.109270859 7.104623582 Calling exit ...