Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002621/0.002626, allocations: 362 kB / 15.95 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.226/4.226, allocations: 388.9 MB / 405.6 MB, free: 48.57 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.006385/0.006385, allocations: 232.7 kB / 451 MB, free: 3.031 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.8994/0.8994, allocations: 80.02 MB / 0.5627 GB, free: 5.961 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005795/0.0005797, allocations: 15.94 kB / 0.6265 GB, free: 4.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1416, allocations: 54.89 MB / 0.6801 GB, free: 13.52 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.526/0.6677, allocations: 83.08 MB / 0.7612 GB, free: 37.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.668, allocations: 67.97 kB / 0.7613 GB, free: 37.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01729/0.6853, allocations: 3.933 MB / 0.7651 GB, free: 33.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6853, allocations: 0 / 0.7651 GB, free: 33.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.6854, allocations: 4 kB / 0.7651 GB, free: 33.21 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001488/0.6869, allocations: 0.5901 MB / 0.7657 GB, free: 32.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.6869, allocations: 8.031 kB / 0.7657 GB, free: 32.58 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.687, allocations: 35.62 kB / 0.7658 GB, free: 32.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.6873, allocations: 237 kB / 0.766 GB, free: 32.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.6874, allocations: 22.94 kB / 0.766 GB, free: 32.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.812e-05/0.6875, allocations: 20 kB / 0.766 GB, free: 32.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.6881, allocations: 231.9 kB / 0.7662 GB, free: 32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.6881, allocations: 2.75 kB / 0.7662 GB, free: 32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.6881, allocations: 7.984 kB / 0.7663 GB, free: 32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.6882, allocations: 7.953 kB / 0.7663 GB, free: 31.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004262/0.6886, allocations: 135.9 kB / 0.7664 GB, free: 31.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.6899, allocations: 0.5681 MB / 0.7669 GB, free: 31.25 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006838/0.6906, allocations: 309 kB / 0.7672 GB, free: 30.94 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.691, allocations: 132.1 kB / 0.7674 GB, free: 30.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.6911, allocations: 4 kB / 0.7674 GB, free: 30.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005505/0.6916, allocations: 258.5 kB / 0.7676 GB, free: 30.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=43): time 3.616e-06/0.6916, allocations: 0 / 0.7676 GB, free: 30.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=43): time 0.001451/0.6931, allocations: 0.5606 MB / 0.7682 GB, free: 29.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.6932, allocations: 74.27 kB / 0.7682 GB, free: 29.89 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002426/0.6934, allocations: 211.7 kB / 0.7684 GB, free: 29.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.6935, allocations: 45.7 kB / 0.7685 GB, free: 29.63 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.6936, allocations: 129 kB / 0.7686 GB, free: 29.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.948e-05/0.6937, allocations: 106.8 kB / 0.7687 GB, free: 29.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.6937, allocations: 8 kB / 0.7687 GB, free: 29.39 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.735e-05/0.6938, allocations: 347.4 kB / 0.769 GB, free: 29.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.6941, allocations: 103.4 kB / 0.7691 GB, free: 28.94 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003684/0.6945, allocations: 288 kB / 0.7694 GB, free: 28.58 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/0.6949, allocations: 149.8 kB / 0.7696 GB, free: 28.44 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.715e-06/0.6949, allocations: 5.594 kB / 0.7696 GB, free: 28.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009485/0.6959, allocations: 441.6 kB / 0.77 GB, free: 28.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.6959, allocations: 15.27 kB / 0.77 GB, free: 28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.696, allocations: 11.05 kB / 0.77 GB, free: 27.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.696, allocations: 8 kB / 0.77 GB, free: 27.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/0.6964, allocations: 63.84 kB / 0.7701 GB, free: 27.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/0.6964, allocations: 14.83 kB / 0.7701 GB, free: 27.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.6967, allocations: 44.48 kB / 0.7701 GB, free: 27.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.6967, allocations: 24.97 kB / 0.7702 GB, free: 27.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000299/0.697, allocations: 201.7 kB / 0.7704 GB, free: 27.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.844e-05/0.6971, allocations: 25.16 kB / 0.7704 GB, free: 27.62 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.003e-05/0.6972, allocations: 27 kB / 0.7704 GB, free: 27.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.6972, allocations: 7.984 kB / 0.7704 GB, free: 27.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.6972, allocations: 0.7188 kB / 0.7704 GB, free: 27.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.6973, allocations: 0 / 0.7704 GB, free: 27.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.6993, allocations: 0.9588 MB / 0.7713 GB, free: 26.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.6993, allocations: 0 / 0.7713 GB, free: 26.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.6994, allocations: 18.8 kB / 0.7714 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.6995, allocations: 4 kB / 0.7714 GB, free: 26.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.164e-05/0.6995, allocations: 8.484 kB / 0.7714 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.6995, allocations: 11.41 kB / 0.7714 GB, free: 26.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.6995, allocations: 6.641 kB / 0.7714 GB, free: 26.54 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.7006, allocations: 0.5459 MB / 0.7719 GB, free: 25.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.276e-05/0.7007, allocations: 100.8 kB / 0.772 GB, free: 25.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/0.7008, allocations: 19.98 kB / 0.772 GB, free: 25.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003886/0.7012, allocations: 36.31 kB / 0.7721 GB, free: 25.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.7013, allocations: 31.91 kB / 0.7721 GB, free: 25.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-05/0.7014, allocations: 19.98 kB / 0.7721 GB, free: 25.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001689/0.7015, allocations: 149.5 kB / 0.7723 GB, free: 25.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7016, allocations: 0 / 0.7723 GB, free: 25.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005493/0.7021, allocations: 79.83 kB / 0.7723 GB, free: 25.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulsStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001764/0.7023, allocations: 128.4 kB / 0.7725 GB, free: 25.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.7034, allocations: 345.3 kB / 0.7728 GB, free: 25.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.7034, allocations: 4 kB / 0.7728 GB, free: 25.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004251/0.7039, allocations: 159.8 kB / 0.773 GB, free: 24.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.7045, allocations: 43.61 kB / 0.773 GB, free: 24.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.7061, allocations: 0.5612 MB / 0.7735 GB, free: 24.29 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.7064, allocations: 0.7725 MB / 0.7743 GB, free: 23.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001811/0.7066, allocations: 30.97 kB / 0.7743 GB, free: 23.46 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.7067, allocations: 31.42 kB / 0.7744 GB, free: 23.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.252e-06/0.7067, allocations: 0 / 0.7744 GB, free: 23.43 MB / 394.7 MB Notification: Performance of Templates: time 0.009036/0.7158, allocations: 2.748 MB / 0.777 GB, free: 20.78 MB / 394.7 MB