Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0009626/0.0009626, 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.001128/0.001128, 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.9678/0.9678, allocations: 177.2 MB / 202.8 MB, free: 5.73 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.7335/0.7335, allocations: 154.6 MB / 413.7 MB, free: 0.8281 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="IDEAS_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.647e-06/3.647e-06, allocations: 0 / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/2.203e-05, allocations: 6.281 kB / 0.618 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001393/0.001415, allocations: 0.732 MB / 0.6187 GB, free: 12.99 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.002664, allocations: 1.19 MB / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.524e-05/0.00271, allocations: 0 / 0.6199 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.245e-05/0.002742, allocations: 7.875 kB / 0.6199 GB, free: 11.78 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.944e-05/0.002812, allocations: 23.8 kB / 0.6199 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.003248, allocations: 141.7 kB / 0.6201 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.003394, allocations: 123.8 kB / 0.6202 GB, free: 11.5 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.0035, allocations: 24.16 kB / 0.6202 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.003602, allocations: 67.89 kB / 0.6203 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.601e-05/0.003678, allocations: 35.92 kB / 0.6203 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.0037, allocations: 12 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.859e-05/0.003759, allocations: 27.98 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.385e-05/0.003782, allocations: 15.92 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 5.669e-05/0.003839, allocations: 39.91 kB / 0.6204 GB, free: 11.28 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.004006, allocations: 143.6 kB / 0.6205 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.694e-06/0.004008, allocations: 0 / 0.6205 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.72e-07/0.004009, allocations: 0 / 0.6205 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.739e-06/0.004014, allocations: 4 kB / 0.6205 GB, free: 11.14 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004323/0.004446, allocations: 343.8 kB / 0.6209 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.004485, allocations: 13.47 kB / 0.6209 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.873e-05/0.004513, allocations: 38.67 kB / 0.6209 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.279e-05/0.004586, allocations: 12.89 kB / 0.6209 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.04e-05/0.004667, allocations: 113.7 kB / 0.621 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.00468, allocations: 8.375 kB / 0.621 GB, free: 10.55 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.004697, allocations: 12.36 kB / 0.6211 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.004843, allocations: 70.22 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.00485, allocations: 4.188 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.004859, allocations: 384 / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.004866, allocations: 7.938 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.004967, allocations: 47.89 kB / 0.6212 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004126/0.00538, allocations: 291.8 kB / 0.6215 GB, free: 10.08 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001316/0.005511, allocations: 62.56 kB / 0.6215 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.005567, allocations: 32.95 kB / 0.6216 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.949e-05/0.005586, allocations: 3.938 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.005761, allocations: 87.36 kB / 0.6216 GB, free: 9.871 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.005762, allocations: 0 / 0.6216 GB, free: 9.871 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8): time 0.0003043/0.006066, allocations: 153.5 kB / 0.6218 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.006104, allocations: 55.41 kB / 0.6218 GB, free: 9.648 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.457e-05/0.006179, allocations: 121.8 kB / 0.622 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.006198, allocations: 29.7 kB / 0.622 GB, free: 9.484 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.006251, allocations: 96.09 kB / 0.6221 GB, free: 9.387 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.006269, allocations: 19.83 kB / 0.6221 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.006321, allocations: 41.64 kB / 0.6221 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.258e-05/0.006414, allocations: 326.8 kB / 0.6224 GB, free: 8.992 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.006526, allocations: 77.67 kB / 0.6225 GB, free: 8.91 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.006642, allocations: 126.8 kB / 0.6226 GB, free: 8.762 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001625/0.006804, allocations: 154.7 kB / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.006806, allocations: 0 / 0.6228 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002632/0.00707, allocations: 241 kB / 0.623 GB, free: 8.332 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.0071, allocations: 45.72 kB / 0.6231 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.007105, allocations: 0 / 0.6231 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.007115, allocations: 0 / 0.6231 GB, free: 8.281 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.466e-05/0.00718, allocations: 15.98 kB / 0.6231 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.007186, allocations: 4 kB / 0.6231 GB, free: 8.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.007289, allocations: 39.91 kB / 0.6231 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.007303, allocations: 8 kB / 0.6231 GB, free: 8.215 MB / 0.5886 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.166e-05/0.007375, allocations: 130.7 kB / 0.6232 GB, free: 8.078 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-06/0.007384, allocations: 7.953 kB / 0.6233 GB, free: 8.07 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.007564, allocations: 126 kB / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.007566, allocations: 0 / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.00757, allocations: 0 / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.007573, allocations: 0 / 0.6234 GB, free: 7.938 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002691/0.007843, allocations: 349.9 kB / 0.6237 GB, free: 7.547 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.007844, allocations: 4 kB / 0.6237 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.052e-05/0.007874, allocations: 11.98 kB / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.007876, allocations: 0 / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.007884, allocations: 0 / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.007885, allocations: 0 / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.007886, allocations: 0 / 0.6237 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.008067, allocations: 231.4 kB / 0.6239 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 8.466e-06/0.008075, allocations: 4 kB / 0.6239 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.008087, allocations: 0 / 0.6239 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.347e-05/0.00813, allocations: 15.98 kB / 0.624 GB, free: 7.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.008165, allocations: 4 kB / 0.624 GB, free: 7.266 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.008172, allocations: 7.922 kB / 0.624 GB, free: 7.258 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.894e-05/0.008211, allocations: 102.5 kB / 0.6241 GB, free: 7.16 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008211, allocations: 0 / 0.6241 GB, free: 7.16 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001977/0.008409, allocations: 31.94 kB / 0.6241 GB, free: 7.129 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 ($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.0004947/0.008903, allocations: 0.7398 MB / 0.6248 GB, free: 6.363 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002788/0.009182, allocations: 204.9 kB / 0.625 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009184, allocations: 0 / 0.625 GB, free: 6.145 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.27e-05/0.009246, allocations: 35.97 kB / 0.6251 GB, free: 6.109 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.009437, allocations: 10.19 kB / 0.6251 GB, free: 6.102 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.01088, allocations: 1.832 MB / 0.6269 GB, free: 4.125 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.732e-05/0.01092, allocations: 75.33 kB / 0.6269 GB, free: 4.031 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.949e-05/0.01095, allocations: 8 kB / 0.6269 GB, free: 4.023 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.749e-05/0.01099, allocations: 24.48 kB / 0.627 GB, free: 4 MB / 0.5886 GB Notification: Performance of SimCode: time 8.41e-07/0.01099, allocations: 0 / 0.627 GB, free: 4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.02863, allocations: 3.344 MB / 0.6302 GB, free: 0.8398 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.79/6.818, allocations: 0 / 0.6302 GB, free: 0.8398 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.739259188994765] Failed to read output from testmodel.py, exit status != 0: 6.90171579644084 6.911863789 6.906073343 Calling exit ...