Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0006649/0.0006649, allocations: 72.45 kB / 19.9 MB, free: 16 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.0007177/0.0007177, allocations: 165.9 kB / 23.18 MB, free: 1.383 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.8274/0.8274, allocations: 177.2 MB / 203.6 MB, free: 5.754 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.7056/0.7056, allocations: 155 MB / 415 MB, free: 488 kB / 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: translateModel(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_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_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009536/0.0009536, allocations: 72.17 kB / 0.6199 GB, free: 12.78 MB / 0.5886 GB [/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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.4249/0.4259, allocations: 102 MB / 0.7195 GB, free: 23.44 MB / 0.6355 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001284/0.4272, allocations: 0.6599 MB / 0.7201 GB, free: 23.03 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.0009581/0.4281, allocations: 1.091 MB / 0.7212 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.4282, allocations: 1.125 kB / 0.7212 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 2.382e-05/0.4282, allocations: 3.938 kB / 0.7212 GB, free: 22.24 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 5.519e-05/0.4283, allocations: 10.89 kB / 0.7212 GB, free: 22.23 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.4285, allocations: 47.66 kB / 0.7212 GB, free: 22.21 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 8.338e-05/0.4286, allocations: 54.64 kB / 0.7213 GB, free: 22.18 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 7.828e-05/0.4287, allocations: 13.28 kB / 0.7213 GB, free: 22.17 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 7.024e-05/0.4287, allocations: 29.23 kB / 0.7213 GB, free: 22.16 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 4.413e-05/0.4288, allocations: 24.59 kB / 0.7213 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.4288, allocations: 4.312 kB / 0.7213 GB, free: 22.15 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 5.65e-05/0.4288, allocations: 24.5 kB / 0.7214 GB, free: 22.14 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 2.014e-05/0.4289, allocations: 11.67 kB / 0.7214 GB, free: 22.13 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 2.959e-05/0.4289, allocations: 16.62 kB / 0.7214 GB, free: 22.12 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.429, allocations: 80.59 kB / 0.7215 GB, free: 22.09 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.429, allocations: 5.094 kB / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.603e-06/0.429, allocations: 0 / 0.7215 GB, free: 22.08 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.429, allocations: 0 / 0.7215 GB, free: 22.08 MB / 0.6355 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.000383/0.4294, allocations: 300 kB / 0.7218 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.4295, allocations: 10.28 kB / 0.7218 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/0.4295, allocations: 4.953 kB / 0.7218 GB, free: 21.8 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.062e-05/0.4296, allocations: 111 kB / 0.7219 GB, free: 21.67 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.4296, allocations: 10.5 kB / 0.7219 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.4296, allocations: 3.188 kB / 0.7219 GB, free: 21.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.4297, allocations: 64.19 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.4298, allocations: 1.5 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.4298, allocations: 4.453 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.4298, allocations: 1.219 kB / 0.722 GB, free: 21.62 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.4299, allocations: 46.89 kB / 0.722 GB, free: 21.61 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002823/0.4302, allocations: 214.8 kB / 0.7222 GB, free: 21.39 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.4303, allocations: 55.19 kB / 0.7223 GB, free: 21.36 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.513e-05/0.4303, allocations: 36.27 kB / 0.7223 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.4303, allocations: 1.781 kB / 0.7223 GB, free: 21.34 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/0.4305, allocations: 74.94 kB / 0.7224 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.4305, allocations: 0 / 0.7224 GB, free: 21.29 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0002553/0.4307, allocations: 130.8 kB / 0.7225 GB, free: 21.23 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.4307, allocations: 52.5 kB / 0.7225 GB, free: 21.16 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.762e-05/0.4308, allocations: 108.8 kB / 0.7227 GB, free: 21.06 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 7.233e-06/0.4308, allocations: 26.83 kB / 0.7227 GB, free: 21.03 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.304e-05/0.4308, allocations: 99.48 kB / 0.7228 GB, free: 20.93 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.4308, allocations: 19.58 kB / 0.7228 GB, free: 20.91 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.4309, allocations: 23.88 kB / 0.7228 GB, free: 20.89 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 3.125e-05/0.4309, allocations: 318 kB / 0.7231 GB, free: 20.58 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.966e-05/0.431, allocations: 29.25 kB / 0.7231 GB, free: 20.57 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.857e-05/0.431, allocations: 63.17 kB / 0.7232 GB, free: 20.52 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.4311, allocations: 91.2 kB / 0.7233 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4311, allocations: 0 / 0.7233 GB, free: 20.46 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001671/0.4313, allocations: 117.9 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.4313, allocations: 6.188 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4313, allocations: 1.125 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.4313, allocations: 2.031 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.741e-05/0.4314, allocations: 20.81 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4314, allocations: 2.766 kB / 0.7234 GB, free: 20.4 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.573e-05/0.4315, allocations: 14.86 kB / 0.7235 GB, free: 20.39 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.4315, allocations: 4.453 kB / 0.7235 GB, free: 20.39 MB / 0.6355 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 5.347e-05/0.4315, allocations: 135.5 kB / 0.7236 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.165e-06/0.4315, allocations: 3.016 kB / 0.7236 GB, free: 20.26 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.4317, allocations: 103 kB / 0.7237 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4317, allocations: 1.703 kB / 0.7237 GB, free: 20.21 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.4317, allocations: 3.984 kB / 0.7237 GB, free: 20.2 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.4317, allocations: 1.781 kB / 0.7237 GB, free: 20.2 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002491/0.432, allocations: 308.7 kB / 0.724 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.432, allocations: 1.219 kB / 0.724 GB, free: 19.94 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.753e-05/0.432, allocations: 13.69 kB / 0.724 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.432, allocations: 1.844 kB / 0.724 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.432, allocations: 1.156 kB / 0.724 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.432, allocations: 0.5156 kB / 0.724 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.432, allocations: 0 / 0.724 GB, free: 19.93 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001531/0.4322, allocations: 204.2 kB / 0.7242 GB, free: 19.78 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.662e-06/0.4322, allocations: 7.156 kB / 0.7242 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.314e-05/0.4322, allocations: 2 kB / 0.7242 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.618e-05/0.4322, allocations: 15.56 kB / 0.7242 GB, free: 19.77 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.4323, allocations: 8.828 kB / 0.7242 GB, free: 19.76 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.4323, allocations: 3.531 kB / 0.7242 GB, free: 19.76 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 1.837e-05/0.4323, allocations: 89.3 kB / 0.7243 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5e-08/0.4323, allocations: 1.125 kB / 0.7243 GB, free: 19.68 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000169/0.4325, allocations: 12.25 kB / 0.7243 GB, free: 19.68 MB / 0.6355 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.0001063/0.4326, allocations: 101.4 kB / 0.7244 GB, free: 19.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001651/0.4328, allocations: 77 kB / 0.7245 GB, free: 19.57 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.4328, allocations: 0 / 0.7245 GB, free: 19.57 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.402e-05/0.4328, allocations: 38.17 kB / 0.7245 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001912/0.433, allocations: 6.391 kB / 0.7245 GB, free: 19.55 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002694/0.4333, allocations: 161.1 kB / 0.7247 GB, free: 19.4 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.699e-05/0.4333, allocations: 68.16 kB / 0.7248 GB, free: 19.33 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.4334, allocations: 19.94 kB / 0.7248 GB, free: 19.32 MB / 0.6355 GB Notification: Performance of SimCode: time 8.72e-07/0.4334, allocations: 0 / 0.7248 GB, free: 19.32 MB / 0.6355 GB Notification: Performance of Templates: time 0.002182/0.4355, allocations: 0.9333 MB / 0.7257 GB, free: 19.25 MB / 0.6355 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.2929861368611455] Failed to read output from testmodel.py, exit status != 0: 0.44089715695008636 0.44902950300000005 0.018301396 Calling exit ...