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.0007566/0.0007566, 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.0008733/0.0008733, allocations: 169.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.8876/0.8876, allocations: 177.1 MB / 202.8 MB, free: 5.723 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.7163/0.7163, allocations: 154.6 MB / 413.8 MB, free: 0.7812 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.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: Performance of FrontEnd - loaded program: time 2.765e-06/2.765e-06, allocations: 3.938 kB / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.688e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00178/0.001807, allocations: 0.7267 MB / 0.6188 GB, free: 12.95 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.002894, allocations: 1.209 MB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.894e-05/0.002943, allocations: 0 / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.771e-05/0.002981, allocations: 3.938 kB / 0.62 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.487e-05/0.003046, allocations: 11.88 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/0.003461, allocations: 142.4 kB / 0.6201 GB, free: 11.58 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.003603, allocations: 123.7 kB / 0.6202 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.003703, allocations: 20.17 kB / 0.6203 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 9.957e-05/0.003803, allocations: 71.88 kB / 0.6203 GB, free: 11.36 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.004016, allocations: 35.94 kB / 0.6204 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.004037, allocations: 12 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.46e-05/0.004102, allocations: 31.92 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.128e-05/0.004123, allocations: 11.97 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 4.699e-05/0.00417, allocations: 39.91 kB / 0.6205 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.004338, allocations: 151.5 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.004341, allocations: 0 / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.282e-06/0.004342, allocations: 0 / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.004347, allocations: 0 / 0.6206 GB, free: 11.09 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.0004457/0.004793, allocations: 343.8 kB / 0.6209 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.004837, allocations: 8.031 kB / 0.6209 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.724e-05/0.004864, allocations: 38.75 kB / 0.621 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.681e-05/0.004941, allocations: 12.88 kB / 0.621 GB, free: 10.65 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.257e-05/0.005014, allocations: 117.7 kB / 0.6211 GB, free: 10.51 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.005026, allocations: 4.375 kB / 0.6211 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.005043, allocations: 8.375 kB / 0.6211 GB, free: 10.5 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.005187, allocations: 74.16 kB / 0.6212 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.005194, allocations: 192 / 0.6212 GB, free: 10.42 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.005203, allocations: 8.375 kB / 0.6212 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.005209, allocations: 3.938 kB / 0.6212 GB, free: 10.41 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.629e-05/0.005305, allocations: 47.95 kB / 0.6212 GB, free: 10.36 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000391/0.005696, allocations: 295.7 kB / 0.6215 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.005822, allocations: 54.55 kB / 0.6216 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.05e-05/0.005873, allocations: 32.97 kB / 0.6216 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.005891, allocations: 0 / 0.6216 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001869/0.006078, allocations: 95.33 kB / 0.6217 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.006079, allocations: 0 / 0.6217 GB, free: 9.824 MB / 0.5886 GB Notification: Performance of matching and sorting (n=8): time 0.0002873/0.006366, allocations: 149.6 kB / 0.6218 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.006403, allocations: 59.33 kB / 0.6219 GB, free: 9.602 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.006473, allocations: 121.6 kB / 0.622 GB, free: 9.477 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.006492, allocations: 33.7 kB / 0.622 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 4.578e-05/0.006537, allocations: 96.08 kB / 0.6221 GB, free: 9.34 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.006554, allocations: 19.84 kB / 0.6222 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-05/0.006604, allocations: 41.69 kB / 0.6222 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.006679, allocations: 322.8 kB / 0.6225 GB, free: 8.949 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.006797, allocations: 81.66 kB / 0.6226 GB, free: 8.863 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.006907, allocations: 122.8 kB / 0.6227 GB, free: 8.719 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.007064, allocations: 154.7 kB / 0.6228 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.007066, allocations: 0 / 0.6228 GB, free: 8.543 MB / 0.5886 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002542/0.007321, allocations: 240.8 kB / 0.6231 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.007347, allocations: 37.86 kB / 0.6231 GB, free: 8.246 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.007354, allocations: 7.984 kB / 0.6231 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.007367, allocations: 0 / 0.6231 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.692e-05/0.007434, allocations: 16 kB / 0.6231 GB, free: 8.223 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.007442, allocations: 11.92 kB / 0.6231 GB, free: 8.211 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.991e-05/0.007542, allocations: 31.92 kB / 0.6232 GB, free: 8.18 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.007557, allocations: 11.98 kB / 0.6232 GB, free: 8.168 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.508e-05/0.007632, allocations: 130.8 kB / 0.6233 GB, free: 8.031 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.007641, allocations: 7.953 kB / 0.6233 GB, free: 8.023 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001849/0.007826, allocations: 126 kB / 0.6234 GB, free: 7.891 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.007828, allocations: 0 / 0.6234 GB, free: 7.891 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.007832, allocations: 0 / 0.6234 GB, free: 7.891 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.007835, allocations: 0 / 0.6234 GB, free: 7.891 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.008099, allocations: 345.5 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.0081, allocations: 0 / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.219e-05/0.008133, allocations: 11.98 kB / 0.6238 GB, free: 7.492 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.008136, allocations: 4 kB / 0.6238 GB, free: 7.488 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.008145, allocations: 7.984 kB / 0.6238 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.008147, allocations: 0 / 0.6238 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.008149, allocations: 3.984 kB / 0.6238 GB, free: 7.477 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.008322, allocations: 223.3 kB / 0.624 GB, free: 7.242 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 6.983e-06/0.008329, allocations: 4 kB / 0.624 GB, free: 7.238 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.008342, allocations: 3.984 kB / 0.624 GB, free: 7.234 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.846e-05/0.00838, allocations: 8 kB / 0.624 GB, free: 7.227 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.008414, allocations: 11.98 kB / 0.624 GB, free: 7.215 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.00842, allocations: 0 / 0.624 GB, free: 7.215 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 3.424e-05/0.008454, allocations: 95.2 kB / 0.6241 GB, free: 7.121 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008454, allocations: 3.938 kB / 0.6241 GB, free: 7.117 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000179/0.008633, allocations: 27.95 kB / 0.6242 GB, free: 7.09 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.0003781/0.009011, allocations: 0.7519 MB / 0.6249 GB, free: 6.312 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002403/0.009252, allocations: 201 kB / 0.6251 GB, free: 6.098 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.009253, allocations: 0 / 0.6251 GB, free: 6.098 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.98e-05/0.009313, allocations: 35.97 kB / 0.6251 GB, free: 6.062 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.009509, allocations: 14.05 kB / 0.6251 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.01086, allocations: 1.824 MB / 0.6269 GB, free: 4.082 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.245e-05/0.01091, allocations: 79.27 kB / 0.627 GB, free: 3.984 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.551e-05/0.01095, allocations: 7.984 kB / 0.627 GB, free: 3.977 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.01099, allocations: 28.5 kB / 0.627 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of SimCode: time 7.71e-07/0.01099, allocations: 0 / 0.627 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.02658, allocations: 3.335 MB / 0.6303 GB, free: 0.8008 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.675/6.702, allocations: 7.891 kB / 0.6303 GB, free: 0.7969 MB / 0.5886 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 9.32691824901849] Failed to read output from testmodel.py, exit status != 0: 6.782943625003099 6.79210166 6.785645071 Calling exit ...