Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.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.001914/0.001914, allocations: 110.4 kB / 18.94 MB, free: 2.793 MB / 14.72 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.002758/0.002758, allocations: 224 kB / 22.26 MB, free: 5.211 MB / 14.72 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.643/1.643, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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.07462/0.07462, allocations: 12.18 MB / 324.6 MB, free: 7.301 MB / 254.1 MB " [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.001124/0.001124, allocations: 30.75 kB / 384.1 MB, free: 46.59 MB / 302.1 MB " [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 2.596/2.596, allocations: 353.8 MB / 0.7787 GB, free: 1.062 MB / 0.5138 GB " [Timeout remaining time 177] 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.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 660] "Notification: AixLib requested package Modelica_DeviceDrivers of version 2.1.1. Modelica_DeviceDrivers 2.2.0 is used instead which states that it is fully compatible without conversion script needed. Notification: AixLib 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.003557/0.003557, allocations: 120.1 kB / 1.061 GB, free: 13.23 MB / 0.7013 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2752, allocations: 134.9 MB / 1.192 GB, free: 6.398 MB / 0.8263 GB Notification: Performance of NFInst.instantiate(AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00186/0.277, allocations: 0.6663 MB / 1.193 GB, free: 5.734 MB / 0.8263 GB Notification: Performance of NFInst.instExpressions: time 0.001547/0.2786, allocations: 1.145 MB / 1.194 GB, free: 4.578 MB / 0.8263 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.402e-05/0.2786, allocations: 0 / 1.194 GB, free: 4.578 MB / 0.8263 GB Notification: Performance of NFTyping.typeComponents: time 2.92e-05/0.2786, allocations: 3.938 kB / 1.194 GB, free: 4.574 MB / 0.8263 GB Notification: Performance of NFTyping.typeBindings: time 6.615e-05/0.2787, allocations: 11.92 kB / 1.194 GB, free: 4.562 MB / 0.8263 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.279, allocations: 47.83 kB / 1.194 GB, free: 4.516 MB / 0.8263 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.2791, allocations: 75.81 kB / 1.194 GB, free: 4.441 MB / 0.8263 GB Notification: Performance of NFFlatten.resolveConnections: time 9.647e-05/0.2792, allocations: 4 kB / 1.194 GB, free: 4.438 MB / 0.8263 GB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.2793, allocations: 27.92 kB / 1.194 GB, free: 4.41 MB / 0.8263 GB Notification: Performance of NFSimplifyModel.simplify: time 6.885e-05/0.2793, allocations: 39.78 kB / 1.194 GB, free: 4.371 MB / 0.8263 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.2794, allocations: 8 kB / 1.194 GB, free: 4.363 MB / 0.8263 GB Notification: Performance of NFFlatten.collectFunctions: time 7.988e-05/0.2794, allocations: 31.97 kB / 1.194 GB, free: 4.332 MB / 0.8263 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.2795, allocations: 11.98 kB / 1.194 GB, free: 4.32 MB / 0.8263 GB Notification: Performance of NFVerifyModel.verify: time 4.423e-05/0.2795, allocations: 27.86 kB / 1.194 GB, free: 4.293 MB / 0.8263 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.2797, allocations: 83.62 kB / 1.194 GB, free: 4.211 MB / 0.8263 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.2797, allocations: 4 kB / 1.194 GB, free: 4.207 MB / 0.8263 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2797, allocations: 0 / 1.194 GB, free: 4.207 MB / 0.8263 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.2797, allocations: 0 / 1.194 GB, free: 4.207 MB / 0.8263 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.0006489/0.2803, allocations: 306.1 kB / 1.195 GB, free: 3.875 MB / 0.8263 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2804, allocations: 15.98 kB / 1.195 GB, free: 3.859 MB / 0.8263 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.545e-05/0.2805, allocations: 12.88 kB / 1.195 GB, free: 3.848 MB / 0.8263 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.2806, allocations: 118.5 kB / 1.195 GB, free: 3.707 MB / 0.8263 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.2806, allocations: 4.375 kB / 1.195 GB, free: 3.703 MB / 0.8263 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.037e-05/0.2806, allocations: 8.375 kB / 1.195 GB, free: 3.695 MB / 0.8263 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.2809, allocations: 80.06 kB / 1.195 GB, free: 3.613 MB / 0.8263 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.2809, allocations: 192 / 1.195 GB, free: 3.613 MB / 0.8263 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.2809, allocations: 7.938 kB / 1.195 GB, free: 3.605 MB / 0.8263 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2809, allocations: 7.938 kB / 1.195 GB, free: 3.598 MB / 0.8263 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.2811, allocations: 59.89 kB / 1.195 GB, free: 3.539 MB / 0.8263 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.2817, allocations: 275.9 kB / 1.195 GB, free: 3.227 MB / 0.8263 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002194/0.2819, allocations: 74.48 kB / 1.195 GB, free: 3.145 MB / 0.8263 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.282, allocations: 44.95 kB / 1.195 GB, free: 3.098 MB / 0.8263 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.282, allocations: 4 kB / 1.195 GB, free: 3.094 MB / 0.8263 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.2823, allocations: 87.36 kB / 1.195 GB, free: 2.996 MB / 0.8263 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.2823, allocations: 0 / 1.195 GB, free: 2.996 MB / 0.8263 GB Notification: Performance of matching and sorting (n=10): time 0.0005136/0.2828, allocations: 177.8 kB / 1.196 GB, free: 2.816 MB / 0.8263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/0.2828, allocations: 55.41 kB / 1.196 GB, free: 2.75 MB / 0.8263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.2829, allocations: 105.8 kB / 1.196 GB, free: 2.637 MB / 0.8263 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.283, allocations: 33.8 kB / 1.196 GB, free: 2.598 MB / 0.8263 GB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.283, allocations: 88.27 kB / 1.196 GB, free: 2.508 MB / 0.8263 GB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/0.2831, allocations: 31.77 kB / 1.196 GB, free: 2.477 MB / 0.8263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.2831, allocations: 37.7 kB / 1.196 GB, free: 2.434 MB / 0.8263 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2833, allocations: 322.8 kB / 1.196 GB, free: 2.109 MB / 0.8263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.2834, allocations: 35.97 kB / 1.196 GB, free: 2.074 MB / 0.8263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.2835, allocations: 62.48 kB / 1.196 GB, free: 2.004 MB / 0.8263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/0.2838, allocations: 102.5 kB / 1.196 GB, free: 1.895 MB / 0.8263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2838, allocations: 0 / 1.196 GB, free: 1.895 MB / 0.8263 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003274/0.2841, allocations: 145 kB / 1.197 GB, free: 1.75 MB / 0.8263 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.2841, allocations: 8 kB / 1.197 GB, free: 1.742 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.2841, allocations: 0 / 1.197 GB, free: 1.742 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.2841, allocations: 0 / 1.197 GB, free: 1.742 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.2843, allocations: 27.91 kB / 1.197 GB, free: 1.715 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.2843, allocations: 64 / 1.197 GB, free: 1.715 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.159e-05/0.2843, allocations: 16 kB / 1.197 GB, free: 1.699 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2844, allocations: 4 kB / 1.197 GB, free: 1.695 MB / 0.8263 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 0.0001109/0.2845, allocations: 130.2 kB / 1.197 GB, free: 1.559 MB / 0.8263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.687e-05/0.2845, allocations: 7.953 kB / 1.197 GB, free: 1.551 MB / 0.8263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003499/0.2849, allocations: 137.9 kB / 1.197 GB, free: 1.406 MB / 0.8263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.2849, allocations: 4 kB / 1.197 GB, free: 1.402 MB / 0.8263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2849, allocations: 4 kB / 1.197 GB, free: 1.398 MB / 0.8263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2849, allocations: 3.938 kB / 1.197 GB, free: 1.395 MB / 0.8263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005703/0.2855, allocations: 377.4 kB / 1.197 GB, free: 0.9766 MB / 0.8263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2855, allocations: 0 / 1.197 GB, free: 0.9766 MB / 0.8263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.276e-05/0.2855, allocations: 11.98 kB / 1.197 GB, free: 0.9648 MB / 0.8263 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2855, allocations: 0 / 1.197 GB, free: 0.9648 MB / 0.8263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2856, allocations: 8 kB / 1.197 GB, free: 0.957 MB / 0.8263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.2856, allocations: 8.188 kB / 1.197 GB, free: 0.9492 MB / 0.8263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2856, allocations: 0 / 1.197 GB, free: 0.9492 MB / 0.8263 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.286, allocations: 243.5 kB / 1.198 GB, free: 0.6953 MB / 0.8263 GB Notification: Performance of postOpt removeConstants (simulation): time 1.157e-05/0.286, allocations: 7.953 kB / 1.198 GB, free: 0.6875 MB / 0.8263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.286, allocations: 4 kB / 1.198 GB, free: 0.6836 MB / 0.8263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.2861, allocations: 11.98 kB / 1.198 GB, free: 0.6719 MB / 0.8263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.2862, allocations: 7.984 kB / 1.198 GB, free: 0.6641 MB / 0.8263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.2862, allocations: 7.938 kB / 1.198 GB, free: 0.6562 MB / 0.8263 GB Notification: Performance of sorting global known variables: time 5.991e-05/0.2862, allocations: 87.27 kB / 1.198 GB, free: 0.5703 MB / 0.8263 GB Notification: Performance of sort global known variables: time 8e-08/0.2862, allocations: 0 / 1.198 GB, free: 0.5703 MB / 0.8263 GB Notification: Performance of remove unused functions: time 0.0002487/0.2865, allocations: 20 kB / 1.198 GB, free: 0.5508 MB / 0.8263 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.0001398/0.2866, allocations: 104.4 kB / 1.198 GB, free: 452 kB / 0.8263 GB Notification: Performance of simCode: created initialization part: time 0.0003144/0.287, allocations: 99.81 kB / 1.198 GB, free: 352 kB / 0.8263 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.287, allocations: 0 / 1.198 GB, free: 352 kB / 0.8263 GB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.2871, allocations: 43.97 kB / 1.198 GB, free: 308 kB / 0.8263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.2873, allocations: 11.98 kB / 1.198 GB, free: 296 kB / 0.8263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.2877, allocations: 162.7 kB / 1.198 GB, free: 108 kB / 0.8263 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.2881, allocations: 0.6925 MB / 1.199 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.23e-05/0.2881, allocations: 4.438 kB / 1.199 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.2881, allocations: 11.44 kB / 1.199 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.2881, allocations: 0 / 1.199 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of Templates: time 0.003937/0.2921, allocations: 1.073 MB / 1.2 GB, free: 14.3 MB / 0.8419 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 660] (rm -f AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > AixLib_AixLib.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.398225836455822] Failed to read output from testmodel.py, exit status != 0: 0.30037492513656616 0.314755819 0.032029365000000004 Calling exit ...