Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.0007847/0.0007847, 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.0007985/0.0007985, 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.873/0.873, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.7125/0.7125, allocations: 154.6 MB / 413.8 MB, free: 0.7891 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.ZeroOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.777e-06/3.777e-06, allocations: 0 / 0.6181 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.106e-05/3.484e-05, allocations: 4.953 kB / 0.6181 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001686/0.001721, allocations: 0.6496 MB / 0.6187 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.001093/0.002814, allocations: 1.108 MB / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.122e-05/0.002886, allocations: 0 / 0.6198 GB, free: 11.89 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.002917, allocations: 3.938 kB / 0.6198 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.002981, allocations: 11.92 kB / 0.6198 GB, free: 11.87 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.003272, allocations: 47.77 kB / 0.6199 GB, free: 11.82 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 8.684e-05/0.003358, allocations: 51.84 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 8.313e-05/0.003442, allocations: 7.984 kB / 0.6199 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 6.902e-05/0.003511, allocations: 31.91 kB / 0.6199 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 4.052e-05/0.003551, allocations: 11.98 kB / 0.62 GB, free: 11.72 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.003566, allocations: 8 kB / 0.62 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 5.845e-05/0.003625, allocations: 27.91 kB / 0.62 GB, free: 11.69 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.219e-05/0.003647, allocations: 11.94 kB / 0.62 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.21e-05/0.003679, allocations: 11.98 kB / 0.62 GB, free: 11.66 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.003842, allocations: 79.69 kB / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.003844, allocations: 0 / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.452e-06/0.003845, allocations: 0 / 0.6201 GB, free: 11.59 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.00385, allocations: 0 / 0.6201 GB, free: 11.59 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004254/0.004276, allocations: 290.2 kB / 0.6204 GB, free: 11.27 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.004316, allocations: 16.02 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.987e-05/0.004346, allocations: 34.75 kB / 0.6204 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.004409, allocations: 12.88 kB / 0.6204 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.307e-05/0.004482, allocations: 105.8 kB / 0.6205 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.004493, allocations: 4.375 kB / 0.6205 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.004502, allocations: 384 / 0.6205 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.00464, allocations: 66.22 kB / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.004648, allocations: 192 / 0.6206 GB, free: 11 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.004658, allocations: 4.375 kB / 0.6206 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.004663, allocations: 4.125 kB / 0.6206 GB, free: 10.99 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.004786, allocations: 47.89 kB / 0.6206 GB, free: 10.94 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004556/0.005242, allocations: 243.9 kB / 0.6209 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.005367, allocations: 50.55 kB / 0.6209 GB, free: 10.6 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.512e-05/0.005422, allocations: 32.95 kB / 0.621 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.005445, allocations: 3.938 kB / 0.621 GB, free: 10.56 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.005602, allocations: 91.38 kB / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.005604, allocations: 0 / 0.6211 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=7): time 0.0002787/0.005883, allocations: 121.6 kB / 0.6212 GB, free: 10.34 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.00592, allocations: 51.41 kB / 0.6212 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.041e-05/0.005981, allocations: 105.8 kB / 0.6213 GB, free: 10.16 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.005996, allocations: 29.7 kB / 0.6213 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 3.926e-05/0.006035, allocations: 92.03 kB / 0.6214 GB, free: 10.03 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.006053, allocations: 15.89 kB / 0.6214 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.454e-05/0.006087, allocations: 25.72 kB / 0.6215 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.00617, allocations: 326.7 kB / 0.6218 GB, free: 9.656 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.388e-05/0.006224, allocations: 27.98 kB / 0.6218 GB, free: 9.629 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.564e-05/0.00629, allocations: 52.27 kB / 0.6219 GB, free: 9.562 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.006411, allocations: 96.19 kB / 0.622 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.006413, allocations: 0 / 0.622 GB, free: 9.453 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001552/0.006568, allocations: 125.4 kB / 0.6221 GB, free: 9.324 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.006582, allocations: 6.031 kB / 0.6221 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.006587, allocations: 0 / 0.6221 GB, free: 9.32 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.0066, allocations: 4 kB / 0.6221 GB, free: 9.316 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.809e-05/0.006678, allocations: 16.11 kB / 0.6221 GB, free: 9.301 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.006683, allocations: 4 kB / 0.6221 GB, free: 9.297 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.768e-05/0.00672, allocations: 15.98 kB / 0.6221 GB, free: 9.281 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.006728, allocations: 256 / 0.6221 GB, free: 9.281 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.508e-05/0.006803, allocations: 126.7 kB / 0.6222 GB, free: 9.148 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.006814, allocations: 7.891 kB / 0.6222 GB, free: 9.141 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001678/0.006981, allocations: 110.1 kB / 0.6224 GB, free: 9.023 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.006985, allocations: 4 kB / 0.6224 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.00699, allocations: 0 / 0.6224 GB, free: 9.02 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.006996, allocations: 8.031 kB / 0.6224 GB, free: 9.012 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002711/0.007267, allocations: 325.5 kB / 0.6227 GB, free: 8.645 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.007269, allocations: 7.984 kB / 0.6227 GB, free: 8.637 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.868e-05/0.007298, allocations: 4 kB / 0.6227 GB, free: 8.633 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.007301, allocations: 4 kB / 0.6227 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.964e-06/0.007309, allocations: 0 / 0.6227 GB, free: 8.629 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.007312, allocations: 3.984 kB / 0.6227 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.007313, allocations: 0 / 0.6227 GB, free: 8.625 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001594/0.007472, allocations: 207.8 kB / 0.6229 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.705e-06/0.00748, allocations: 7.984 kB / 0.6229 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.007493, allocations: 0 / 0.6229 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.741e-05/0.007541, allocations: 8 kB / 0.6229 GB, free: 8.391 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.007584, allocations: 11.92 kB / 0.6229 GB, free: 8.379 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.007598, allocations: 4 kB / 0.6229 GB, free: 8.375 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.759e-05/0.007656, allocations: 87.27 kB / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.5e-07/0.007656, allocations: 0 / 0.623 GB, free: 8.289 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001805/0.007836, allocations: 12 kB / 0.623 GB, free: 8.277 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * 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.0004873/0.008324, allocations: 0.7435 MB / 0.6237 GB, free: 7.508 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.008495, allocations: 68.06 kB / 0.6238 GB, free: 7.441 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.008496, allocations: 4 kB / 0.6238 GB, free: 7.438 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 6.286e-05/0.008559, allocations: 28.17 kB / 0.6238 GB, free: 7.41 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.008777, allocations: 19.59 kB / 0.6239 GB, free: 7.395 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.00987, allocations: 1.415 MB / 0.6252 GB, free: 5.875 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.41e-05/0.009914, allocations: 71.34 kB / 0.6253 GB, free: 5.785 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 2.556e-05/0.00994, allocations: 4 kB / 0.6253 GB, free: 5.781 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.459e-05/0.009975, allocations: 20.48 kB / 0.6253 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of SimCode: time 4.51e-07/0.009975, allocations: 0 / 0.6253 GB, free: 5.762 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.02541, allocations: 2.505 MB / 0.6278 GB, free: 3.414 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.701/6.727, allocations: 19.55 kB / 0.6278 GB, free: 3.402 MB / 0.5886 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.310978973284364] Failed to read output from testmodel.py, exit status != 0: 6.8066454427316785 6.815351879 6.809624062 Calling exit ...