Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.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.001107/0.001107, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001232/0.001232, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.013/1.013, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.06097/0.06097, allocations: 12.77 MB / 273.8 MB, free: 116 kB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.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(Bodylight.Blocks.Signals.Testers.TestSignalsZOH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH") translateModel(Bodylight.Blocks.Signals.Testers.TestSignalsZOH,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 347.1 MB, free: 1.781 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.034e-05/2.255e-05, allocations: 6.312 kB / 347.1 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Blocks.Signals.Testers.TestSignalsZOH): time 0.003068/0.00309, allocations: 1.808 MB / 348.9 MB, free: 15.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.004354, allocations: 0.6309 MB / 349.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.004474, allocations: 4 kB / 349.6 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.652e-05/0.004531, allocations: 11.81 kB / 349.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002235/0.004754, allocations: 31.61 kB / 349.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.005078, allocations: 79.81 kB / 349.7 MB, free: 15.19 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.00535, allocations: 175.5 kB / 349.9 MB, free: 15.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.005493, allocations: 33.72 kB / 349.9 MB, free: 14.99 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002717/0.005765, allocations: 115.7 kB / 350 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.005875, allocations: 55.78 kB / 350.1 MB, free: 14.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.579e-05/0.005911, allocations: 16 kB / 350.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.95e-05/0.005971, allocations: 16 kB / 350.1 MB, free: 14.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.706e-05/0.006018, allocations: 39.89 kB / 350.1 MB, free: 14.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.114e-05/0.006089, allocations: 51.83 kB / 350.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.006319, allocations: 135.4 kB / 350.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.006323, allocations: 0 / 350.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.006325, allocations: 0 / 350.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.006329, allocations: 0 / 350.3 MB, free: 14.57 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0008246/0.007154, allocations: 0.5742 MB / 350.9 MB, free: 13.94 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.007199, allocations: 11.98 kB / 350.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.007424, allocations: 56.77 kB / 350.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.007672, allocations: 168.3 kB / 351.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.007812, allocations: 127.4 kB / 351.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.007845, allocations: 16.38 kB / 351.3 MB, free: 13.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.008094, allocations: 148.1 kB / 351.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.008107, allocations: 192 / 351.4 MB, free: 13.37 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.008127, allocations: 12.11 kB / 351.4 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.008135, allocations: 4 kB / 351.4 MB, free: 13.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.008239, allocations: 51.81 kB / 351.5 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007412/0.00898, allocations: 439.7 kB / 351.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.009165, allocations: 106.9 kB / 352 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.271e-05/0.009227, allocations: 39.66 kB / 352 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.009257, allocations: 4 kB / 352 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.009446, allocations: 138.7 kB / 352.2 MB, free: 12.53 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.284e-06/0.009448, allocations: 0 / 352.2 MB, free: 12.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009534/0.0104, allocations: 379.8 kB / 352.5 MB, free: 12.15 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.01044, allocations: 63.28 kB / 352.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.01058, allocations: 210.6 kB / 352.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.01061, allocations: 37.69 kB / 352.9 MB, free: 11.81 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.226e-05/0.0107, allocations: 167.3 kB / 353 MB, free: 11.64 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/0.01077, allocations: 75.36 kB / 353.1 MB, free: 11.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.215e-05/0.01085, allocations: 59.31 kB / 353.1 MB, free: 11.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.01101, allocations: 0.5039 MB / 353.7 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.004e-05/0.01107, allocations: 28.25 kB / 353.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.325e-05/0.01116, allocations: 90.62 kB / 353.8 MB, free: 10.85 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002472/0.01141, allocations: 162.2 kB / 353.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.01141, allocations: 4 kB / 353.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003409/0.01175, allocations: 200.4 kB / 354.1 MB, free: 10.46 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.01177, allocations: 8 kB / 354.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.01178, allocations: 4.062 kB / 354.1 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001222/0.0119, allocations: 27.61 kB / 354.2 MB, free: 10.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002069/0.01211, allocations: 63.89 kB / 354.2 MB, free: 10.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.0132, allocations: 1.919 MB / 356.1 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.01331, allocations: 15.98 kB / 356.2 MB, free: 8.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.01333, allocations: 8 kB / 356.2 MB, free: 8.301 MB / 282.7 MB Warning: Assuming fixed start value for the following 8 variables: zOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real maxZOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real minZOH.y:DISCRETE(flow=false fixed = true ) \"Connector of Real output signal\" type: Real maxZOH.yt:VARIABLE(fixed = true stateSelect=StateSelect.always protected = true ) \"temporary y\" type: Real minZOH.yt:VARIABLE(fixed = true stateSelect=StateSelect.always protected = true ) \"temporary y\" type: Real max1.yhold:DISCRETE(fixed = true protected = true ) \"holding the extreme value\" type: Real min1.yMinCriticalPoints:DISCRETE(fixed = true protected = true ) type: Real continuousMeanValue.y:VARIABLE(flow=false fixed = true stateSelect=StateSelect.always ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.zOH.y,zOH.y,$whenCondition4,$whenCondition2,reset,$whenCondition1,$PRE.maxZOH.y,$PRE.minZOH.y,maxZOH.y,minZOH.y,$PRE.max1.yhold,$PRE.min1.yMinCriticalPoints,max1.yhold,min1.yMinCriticalPoints,$whenCondition3,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002255/0.01356, allocations: 206.9 kB / 356.4 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.252e-05/0.0136, allocations: 27.89 kB / 356.4 MB, free: 8.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003907/0.01399, allocations: 239.2 kB / 356.6 MB, free: 7.812 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.01399, allocations: 4 kB / 356.6 MB, free: 7.809 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.014, allocations: 3.984 kB / 356.6 MB, free: 7.805 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.014, allocations: 3.938 kB / 356.6 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007133/0.01472, allocations: 0.5228 MB / 357.2 MB, free: 7.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01472, allocations: 4 kB / 357.2 MB, free: 7.234 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.01492, allocations: 39.91 kB / 357.2 MB, free: 7.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.03e-05/0.01501, allocations: 35.59 kB / 357.2 MB, free: 7.156 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.01503, allocations: 8 kB / 357.3 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.01611, allocations: 1.919 MB / 359.2 MB, free: 5.117 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01611, allocations: 4.125 kB / 359.2 MB, free: 5.113 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005596/0.01667, allocations: 440.6 kB / 359.6 MB, free: 4.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.199e-05/0.01669, allocations: 19.86 kB / 359.6 MB, free: 4.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.01672, allocations: 8 kB / 359.6 MB, free: 4.633 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.01686, allocations: 19.92 kB / 359.7 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.01695, allocations: 31.94 kB / 359.7 MB, free: 4.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-05/0.01698, allocations: 15.98 kB / 359.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.377e-05/0.01705, allocations: 139.2 kB / 359.8 MB, free: 4.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01705, allocations: 4 kB / 359.8 MB, free: 4.426 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000416/0.01747, allocations: 47.98 kB / 359.9 MB, free: 4.379 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (continuousMeanValue.y,minZOH.yt,maxZOH.yt) * Number of discrete variables: 11 (reset,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,zOH.y,min1.yMinCriticalPoints,max1.yhold,minZOH.y,maxZOH.y) * Number of discrete states: 2 (min1.yMinCriticalPoints,max1.yhold) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001318/0.0176, allocations: 103.2 kB / 360 MB, free: 4.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.01803, allocations: 307.9 kB / 360.3 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.01803, allocations: 0 / 360.3 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.01837, allocations: 261.6 kB / 360.5 MB, free: 3.672 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002089/0.01858, allocations: 26.95 kB / 360.6 MB, free: 3.648 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006926/0.01927, allocations: 412.9 kB / 361 MB, free: 3.207 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.177e-05/0.01934, allocations: 128.8 kB / 361.1 MB, free: 3.062 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.997e-05/0.01944, allocations: 98.19 kB / 361.2 MB, free: 2.965 MB / 282.7 MB Notification: Performance of SimCode: time 1.453e-06/0.01944, allocations: 0 / 361.2 MB, free: 2.965 MB / 282.7 MB Notification: Performance of Templates: time 0.003048/0.02249, allocations: 3.32 MB / 364.5 MB, free: 15.64 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe ; mkfifo Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe ; head -c 1048576 < Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe >> ../files/Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.sim & ./Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH > Bodylight_Bodylight.Blocks.Signals.Testers.TestSignalsZOH.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8075410942547023]