Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.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.0007123/0.0007123, allocations: 79.69 kB / 20.03 MB, free: 4.492 MB / 18.57 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.0007355/0.0007355, allocations: 165.3 kB / 23.33 MB, free: 1.191 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.8323/0.8323, allocations: 177.1 MB / 203.6 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.03383/0.03383, allocations: 9.125 MB / 269.2 MB, free: 4.449 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo): time 0.0003602/0.0003602, allocations: 19.95 kB / 328.7 MB, free: 20.62 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo): time 1.459/1.459, allocations: 275 MB / 0.6476 GB, free: 2.488 MB / 0.4949 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 178] Using package AixLib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.0/package.mo) Using package SDF with version 0.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF master/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.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(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.404e-06/2.404e-06, allocations: 3.984 kB / 0.9294 GB, free: 8.16 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/2.076e-05, allocations: 2.281 kB / 0.9294 GB, free: 8.156 MB / 0.698 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.00115/0.001171, allocations: 0.6438 MB / 0.9301 GB, free: 7.527 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0009767/0.002148, allocations: 1.112 MB / 0.9312 GB, free: 6.402 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.722e-05/0.002195, allocations: 4.562 kB / 0.9312 GB, free: 6.398 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.00222, allocations: 5.75 kB / 0.9312 GB, free: 6.395 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 6.064e-05/0.00228, allocations: 7.984 kB / 0.9312 GB, free: 6.387 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.002551, allocations: 47.7 kB / 0.9312 GB, free: 6.34 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 8.179e-05/0.002633, allocations: 51.84 kB / 0.9313 GB, free: 6.289 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 7.973e-05/0.002713, allocations: 10.25 kB / 0.9313 GB, free: 6.281 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.144e-05/0.002784, allocations: 31.97 kB / 0.9313 GB, free: 6.25 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 4.267e-05/0.002827, allocations: 19.91 kB / 0.9313 GB, free: 6.23 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.002842, allocations: 4 kB / 0.9313 GB, free: 6.227 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.002899, allocations: 23.92 kB / 0.9314 GB, free: 6.203 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.003e-05/0.002919, allocations: 7.984 kB / 0.9314 GB, free: 6.195 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.038e-05/0.002949, allocations: 23.91 kB / 0.9314 GB, free: 6.172 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.00307, allocations: 61.59 kB / 0.9314 GB, free: 6.113 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.003072, allocations: 3.984 kB / 0.9315 GB, free: 6.109 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.242e-06/0.003074, allocations: 0 / 0.9315 GB, free: 6.109 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.236e-06/0.003077, allocations: 0 / 0.9315 GB, free: 6.109 MB / 0.698 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.0004433/0.00352, allocations: 296 kB / 0.9317 GB, free: 5.789 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.003559, allocations: 11.98 kB / 0.9317 GB, free: 5.777 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.103e-05/0.00363, allocations: 8.891 kB / 0.9318 GB, free: 5.77 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.721e-05/0.003707, allocations: 111.5 kB / 0.9319 GB, free: 5.637 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.003717, allocations: 4.359 kB / 0.9319 GB, free: 5.633 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.00373, allocations: 4.375 kB / 0.9319 GB, free: 5.629 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.003873, allocations: 66.17 kB / 0.9319 GB, free: 5.559 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.00388, allocations: 1.094 kB / 0.9319 GB, free: 5.559 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.003891, allocations: 4.359 kB / 0.9319 GB, free: 5.555 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.003896, allocations: 4.922 kB / 0.9319 GB, free: 5.551 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.919e-05/0.003995, allocations: 53.66 kB / 0.932 GB, free: 5.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003288/0.004324, allocations: 216.5 kB / 0.9322 GB, free: 5.258 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001069/0.004431, allocations: 60.05 kB / 0.9323 GB, free: 5.191 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.376e-05/0.004484, allocations: 32.95 kB / 0.9323 GB, free: 5.156 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.004507, allocations: 0 / 0.9323 GB, free: 5.156 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/0.004626, allocations: 80.03 kB / 0.9324 GB, free: 5.066 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 9.01e-07/0.004627, allocations: 0.5625 kB / 0.9324 GB, free: 5.066 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0002643/0.004891, allocations: 128.2 kB / 0.9325 GB, free: 4.938 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.004917, allocations: 63.28 kB / 0.9325 GB, free: 4.863 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.811e-05/0.004975, allocations: 109.8 kB / 0.9327 GB, free: 4.746 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.004987, allocations: 29.7 kB / 0.9327 GB, free: 4.711 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.005019, allocations: 80.14 kB / 0.9328 GB, free: 4.629 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.005037, allocations: 17.22 kB / 0.9328 GB, free: 4.613 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.005068, allocations: 25.7 kB / 0.9328 GB, free: 4.582 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.177e-05/0.005139, allocations: 318.8 kB / 0.9331 GB, free: 4.262 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.381e-05/0.005193, allocations: 27.64 kB / 0.9331 GB, free: 4.238 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.635e-05/0.00526, allocations: 60.27 kB / 0.9332 GB, free: 4.164 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.005374, allocations: 92.19 kB / 0.9333 GB, free: 4.059 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.005376, allocations: 1.906 kB / 0.9333 GB, free: 4.059 MB / 0.698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000151/0.005527, allocations: 117.5 kB / 0.9334 GB, free: 3.938 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.005539, allocations: 10.44 kB / 0.9334 GB, free: 3.93 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.005545, allocations: 4 kB / 0.9334 GB, free: 3.926 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.005555, allocations: 0 / 0.9334 GB, free: 3.926 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.477e-05/0.00562, allocations: 15.98 kB / 0.9334 GB, free: 3.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.00563, allocations: 11.88 kB / 0.9334 GB, free: 3.898 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.43e-05/0.005664, allocations: 12.05 kB / 0.9334 GB, free: 3.887 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.005672, allocations: 8 kB / 0.9334 GB, free: 3.879 MB / 0.698 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.832e-05/0.00573, allocations: 113.8 kB / 0.9336 GB, free: 3.758 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-06/0.005737, allocations: 3.953 kB / 0.9336 GB, free: 3.754 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.005895, allocations: 110 kB / 0.9337 GB, free: 3.641 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.005898, allocations: 0 / 0.9337 GB, free: 3.641 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.0059, allocations: 3.984 kB / 0.9337 GB, free: 3.637 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.089e-05/0.005911, allocations: 15.95 kB / 0.9337 GB, free: 3.621 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.005923, allocations: 3.938 kB / 0.9337 GB, free: 3.617 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.203e-05/0.005955, allocations: 11.98 kB / 0.9337 GB, free: 3.605 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.384e-05/0.005989, allocations: 4 kB / 0.9337 GB, free: 3.602 MB / 0.698 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001595/0.006148, allocations: 184.9 kB / 0.9339 GB, free: 3.414 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001639/0.006312, allocations: 270.7 kB / 0.9341 GB, free: 3.133 MB / 0.698 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.448e-05/0.006367, allocations: 27.92 kB / 0.9342 GB, free: 3.105 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.923e-05/0.006396, allocations: 91.27 kB / 0.9343 GB, free: 3.016 MB / 0.698 GB Notification: Performance of Backend: time 5.31e-07/0.006397, allocations: 0 / 0.9343 GB, free: 3.016 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003212/0.006718, allocations: 130.3 kB / 0.9344 GB, free: 2.883 MB / 0.698 GB Notification: Performance of SimCode: time 0.000378/0.007096, allocations: 0.581 MB / 0.9349 GB, free: 2.254 MB / 0.698 GB Notification: Performance of Templates: time 0.00258/0.009676, allocations: 1.072 MB / 0.936 GB, free: 1.211 MB / 0.698 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile [Timeout 660] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.448886975646019] Failed to read output from testmodel.py, exit status != 0: 0.014100145548582077 0.021327235 0.016570371 Calling exit ...