Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.0009475/0.0009475, 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.0008909/0.0008909, allocations: 170.3 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.9506/0.9506, allocations: 177.1 MB / 202.8 MB, free: 5.762 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.7211/0.7211, allocations: 154.6 MB / 413.8 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.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.788e-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.FirstOrderHold): time 0.001244/0.001262, allocations: 0.6664 MB / 0.6187 GB, free: 13.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.002351, allocations: 1.112 MB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.338e-05/0.002404, allocations: 0 / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.252e-05/0.002437, allocations: 3.938 kB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 7.414e-05/0.002511, allocations: 11.86 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002946/0.002805, allocations: 47.77 kB / 0.6199 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 9.695e-05/0.002902, allocations: 71.83 kB / 0.6199 GB, free: 11.76 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 9.709e-05/0.002999, allocations: 11.98 kB / 0.62 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.003085, allocations: 39.91 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.801e-05/0.003133, allocations: 27.95 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.003149, allocations: 7.938 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.481e-05/0.003214, allocations: 23.92 kB / 0.62 GB, free: 11.65 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.003236, allocations: 19.97 kB / 0.6201 GB, free: 11.63 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.02e-05/0.003267, allocations: 19.92 kB / 0.6201 GB, free: 11.61 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001364/0.003403, allocations: 83.78 kB / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.003405, allocations: 4 kB / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.12e-07/0.003406, allocations: 0 / 0.6202 GB, free: 11.53 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.00341, allocations: 0 / 0.6202 GB, free: 11.53 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004411/0.003851, allocations: 310.1 kB / 0.6205 GB, free: 11.19 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.003887, allocations: 8.031 kB / 0.6205 GB, free: 11.18 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.341e-05/0.003921, allocations: 42.73 kB / 0.6205 GB, free: 11.13 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.003987, allocations: 8.891 kB / 0.6205 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.189e-05/0.004058, allocations: 105.8 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.004078, allocations: 4.375 kB / 0.6206 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.00409, allocations: 8.375 kB / 0.6206 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.004243, allocations: 86.14 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.004249, allocations: 192 / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.00426, allocations: 4.375 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.004267, allocations: 4.125 kB / 0.6207 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001069/0.004374, allocations: 51.95 kB / 0.6208 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.004751, allocations: 263.9 kB / 0.621 GB, free: 10.54 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.004871, allocations: 78.47 kB / 0.6211 GB, free: 10.45 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.083e-05/0.004932, allocations: 44.83 kB / 0.6211 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.00495, allocations: 3.938 kB / 0.6211 GB, free: 10.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.005093, allocations: 87.48 kB / 0.6212 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.005094, allocations: 3.938 kB / 0.6212 GB, free: 10.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.000309/0.005403, allocations: 177.6 kB / 0.6214 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.005443, allocations: 71.31 kB / 0.6215 GB, free: 10.04 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.928e-05/0.005502, allocations: 101.9 kB / 0.6216 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.005518, allocations: 33.69 kB / 0.6216 GB, free: 9.887 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.005555, allocations: 88.38 kB / 0.6217 GB, free: 9.793 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.005577, allocations: 31.75 kB / 0.6217 GB, free: 9.762 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.005614, allocations: 33.7 kB / 0.6217 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.566e-05/0.00569, allocations: 318.8 kB / 0.6221 GB, free: 9.402 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.664e-05/0.005757, allocations: 35.97 kB / 0.6221 GB, free: 9.367 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.378e-05/0.00583, allocations: 65.08 kB / 0.6221 GB, free: 9.297 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.005962, allocations: 102.5 kB / 0.6222 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.005965, allocations: 256 / 0.6222 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001831/0.006148, allocations: 145.4 kB / 0.6224 GB, free: 9.039 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.006161, allocations: 8 kB / 0.6224 GB, free: 9.031 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.006167, allocations: 4 kB / 0.6224 GB, free: 9.027 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.006179, allocations: 4.062 kB / 0.6224 GB, free: 9.023 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.027e-05/0.006259, allocations: 23.98 kB / 0.6224 GB, free: 9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.006264, allocations: 0 / 0.6224 GB, free: 9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.679e-05/0.006301, allocations: 11.98 kB / 0.6224 GB, free: 8.988 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.006311, allocations: 4 kB / 0.6224 GB, free: 8.984 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.863e-05/0.00639, allocations: 126.8 kB / 0.6226 GB, free: 8.852 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.423e-05/0.006404, allocations: 11.89 kB / 0.6226 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.006617, allocations: 149.9 kB / 0.6227 GB, free: 8.684 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.00662, allocations: 4 kB / 0.6227 GB, free: 8.68 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.006626, allocations: 3.984 kB / 0.6227 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.006631, allocations: 0 / 0.6227 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/0.006958, allocations: 374 kB / 0.6231 GB, free: 8.262 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.006961, allocations: 0 / 0.6231 GB, free: 8.262 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.178e-05/0.006992, allocations: 11.98 kB / 0.6231 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.006995, allocations: 0 / 0.6231 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.007004, allocations: 96 / 0.6231 GB, free: 8.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.007004, allocations: 11.94 kB / 0.6231 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.007006, allocations: 0 / 0.6231 GB, free: 8.238 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.007207, allocations: 243.3 kB / 0.6233 GB, free: 7.984 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.444e-06/0.007214, allocations: 7.953 kB / 0.6233 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.007228, allocations: 0 / 0.6233 GB, free: 7.977 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.139e-05/0.007279, allocations: 11.98 kB / 0.6234 GB, free: 7.965 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.007315, allocations: 7.984 kB / 0.6234 GB, free: 7.957 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-06/0.007322, allocations: 4 kB / 0.6234 GB, free: 7.953 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 2.907e-05/0.007351, allocations: 87.27 kB / 0.6234 GB, free: 7.867 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.007351, allocations: 4 kB / 0.6235 GB, free: 7.863 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001714/0.007523, allocations: 16 kB / 0.6235 GB, free: 7.848 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000414/0.007937, allocations: 0.7825 MB / 0.6242 GB, free: 7.039 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003477/0.008284, allocations: 99.42 kB / 0.6243 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.008286, allocations: 0 / 0.6243 GB, free: 6.945 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.902e-05/0.008355, allocations: 44.09 kB / 0.6244 GB, free: 6.902 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.008541, allocations: 10.34 kB / 0.6244 GB, free: 6.895 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.009707, allocations: 1.507 MB / 0.6258 GB, free: 5.297 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.979e-05/0.009757, allocations: 75.33 kB / 0.6259 GB, free: 5.203 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 3.255e-05/0.009789, allocations: 8.688 kB / 0.6259 GB, free: 5.195 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.00983, allocations: 20.48 kB / 0.6259 GB, free: 5.176 MB / 0.5886 GB Notification: Performance of SimCode: time 9.02e-07/0.009831, allocations: 0 / 0.6259 GB, free: 5.176 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.02544, allocations: 2.774 MB / 0.6287 GB, free: 2.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.035/7.061, allocations: 7.703 kB / 0.6287 GB, free: 2.566 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_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_FirstOrderHold.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.89103046245873] Failed to read output from testmodel.py, exit status != 0: 7.142107203602791 7.151179786 7.145820662 Calling exit ...