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.002351/0.002351, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 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.003027/0.003027, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.56/1.56, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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-545:108: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-545:116: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 1.391/1.391, allocations: 154.6 MB / 414.1 MB, free: 0.6602 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 178] 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.564e-06/2.564e-06, allocations: 0 / 0.5196 GB, free: 2.582 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.457e-05/3.713e-05, allocations: 8.328 kB / 0.5196 GB, free: 2.578 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002661/0.002698, allocations: 0.6662 MB / 0.5202 GB, free: 1.934 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.005162, allocations: 1.092 MB / 0.5213 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.745e-05/0.005209, allocations: 4 kB / 0.5213 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 3.482e-05/0.005244, allocations: 4.5 kB / 0.5213 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 9.874e-05/0.005343, allocations: 12.36 kB / 0.5213 GB, free: 0.8086 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.005754, allocations: 48.8 kB / 0.5214 GB, free: 0.7617 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.005895, allocations: 55.78 kB / 0.5214 GB, free: 0.707 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.005995, allocations: 9.062 kB / 0.5214 GB, free: 0.6992 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001121/0.006107, allocations: 35.91 kB / 0.5215 GB, free: 0.6641 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.562e-05/0.006163, allocations: 11.97 kB / 0.5215 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.006186, allocations: 4.625 kB / 0.5215 GB, free: 0.6484 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.006265, allocations: 23.98 kB / 0.5215 GB, free: 0.625 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 3.364e-05/0.006299, allocations: 17.28 kB / 0.5215 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.139e-05/0.00634, allocations: 12 kB / 0.5215 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.006542, allocations: 67.77 kB / 0.5216 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.006546, allocations: 0 / 0.5216 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.006547, allocations: 0.5625 kB / 0.5216 GB, free: 0.5312 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.006553, allocations: 0.5625 kB / 0.5216 GB, free: 0.5312 MB / 490.7 MB 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.0007539/0.007306, allocations: 393.5 kB / 0.522 GB, free: 112 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.007361, allocations: 8.031 kB / 0.522 GB, free: 104 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.007519, allocations: 17.61 kB / 0.522 GB, free: 88 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.007688, allocations: 116.5 kB / 0.5221 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.00771, allocations: 5.594 kB / 0.5221 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.007722, allocations: 384 / 0.5221 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.007922, allocations: 58.23 kB / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.007934, allocations: 4.938 kB / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.007946, allocations: 384 / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.00795, allocations: 384 / 0.5222 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.008095, allocations: 40.53 kB / 0.5222 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.008656, allocations: 276.5 kB / 0.5225 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.008826, allocations: 63.97 kB / 0.5225 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.366e-05/0.008909, allocations: 27.8 kB / 0.5226 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.008937, allocations: 2.688 kB / 0.5226 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.00911, allocations: 76.98 kB / 0.5226 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.009112, allocations: 0 / 0.5226 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=7): time 0.0004145/0.009526, allocations: 113.6 kB / 0.5228 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.009585, allocations: 55.41 kB / 0.5228 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.009732, allocations: 171.3 kB / 0.523 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.009756, allocations: 29.64 kB / 0.523 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.009846, allocations: 134.9 kB / 0.5231 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.009875, allocations: 23.83 kB / 0.5232 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.088e-05/0.009936, allocations: 31.94 kB / 0.5232 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000275/0.01021, allocations: 0.4933 MB / 0.5237 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.111e-05/0.0103, allocations: 16 kB / 0.5237 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.01043, allocations: 75.53 kB / 0.5238 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.01062, allocations: 99.88 kB / 0.5238 GB, free: 14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01063, allocations: 0 / 0.5238 GB, free: 14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002466/0.01087, allocations: 114.9 kB / 0.524 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.01089, allocations: 8.781 kB / 0.524 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.0109, allocations: 4 kB / 0.524 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.01091, allocations: 0.9062 kB / 0.524 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.01102, allocations: 19.98 kB / 0.524 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.01103, allocations: 0 / 0.524 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.347e-05/0.01108, allocations: 6.75 kB / 0.524 GB, free: 13.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.0111, allocations: 4 kB / 0.524 GB, free: 13.85 MB / 0.4948 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 0.0001423/0.01124, allocations: 164.5 kB / 0.5242 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.01127, allocations: 19.88 kB / 0.5242 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002544/0.01152, allocations: 90.11 kB / 0.5243 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.01152, allocations: 2.75 kB / 0.5243 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.01153, allocations: 0 / 0.5243 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.01153, allocations: 3.984 kB / 0.5243 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000471/0.01201, allocations: 357.3 kB / 0.5246 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.01201, allocations: 0 / 0.5246 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.834e-05/0.01206, allocations: 4 kB / 0.5246 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.01206, allocations: 0 / 0.5246 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.01208, allocations: 13.3 kB / 0.5246 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.01208, allocations: 0 / 0.5246 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01208, allocations: 0 / 0.5246 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000338/0.01242, allocations: 244.4 kB / 0.5249 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.607e-06/0.01243, allocations: 0 / 0.5249 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.01245, allocations: 7.438 kB / 0.5249 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.43e-05/0.01253, allocations: 11.92 kB / 0.5249 GB, free: 12.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.01258, allocations: 7.984 kB / 0.5249 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.0126, allocations: 4 kB / 0.5249 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 8.851e-05/0.01269, allocations: 127.2 kB / 0.525 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.01269, allocations: 0 / 0.525 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002395/0.01292, allocations: 12 kB / 0.525 GB, free: 12.73 MB / 0.4948 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.0002224/0.01315, allocations: 105.7 kB / 0.5251 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002548/0.0134, allocations: 71.58 kB / 0.5252 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.0134, allocations: 0 / 0.5252 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.01351, allocations: 39.61 kB / 0.5252 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.0138, allocations: 14.73 kB / 0.5252 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004529/0.01426, allocations: 152.4 kB / 0.5254 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.462e-05/0.01435, allocations: 71.19 kB / 0.5255 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.54e-05/0.01439, allocations: 4 kB / 0.5255 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.01442, allocations: 12.5 kB / 0.5255 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of SimCode: time 7.82e-07/0.01442, allocations: 2.438 kB / 0.5255 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of Templates: time 0.004294/0.01872, allocations: 0.8742 MB / 0.5263 GB, free: 11.38 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (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 & ./IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.285259271971881]