Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002838/0.002843, allocations: 347.2 kB / 15.93 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.845/3.845, allocations: 341.5 MB / 358.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.009753/0.009753, allocations: 222.1 kB / 397.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4883/0.4883, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004804/0.0004805, allocations: 11.98 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09044/0.09094, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.41/0.501, allocations: 74.44 MB / 0.6794 GB, free: 38.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.5013, allocations: 66.94 kB / 0.6795 GB, free: 38.24 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005814/0.5071, allocations: 1.452 MB / 0.6809 GB, free: 36.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5071, allocations: 0 / 0.6809 GB, free: 36.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.5072, allocations: 0 / 0.6809 GB, free: 36.83 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006189/0.5078, allocations: 388.4 kB / 0.6813 GB, free: 36.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.5079, allocations: 11.16 kB / 0.6813 GB, free: 36.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.594e-05/0.5079, allocations: 9.625 kB / 0.6813 GB, free: 36.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.5081, allocations: 180.6 kB / 0.6815 GB, free: 36.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.5081, allocations: 4 kB / 0.6815 GB, free: 36.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.5081, allocations: 8.188 kB / 0.6815 GB, free: 36.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002474/0.5084, allocations: 93.95 kB / 0.6816 GB, free: 36.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.5084, allocations: 1.688 kB / 0.6816 GB, free: 36.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.5085, allocations: 8 kB / 0.6816 GB, free: 36.06 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.5085, allocations: 6.484 kB / 0.6816 GB, free: 36.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.5087, allocations: 50.66 kB / 0.6816 GB, free: 36.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.5093, allocations: 328.7 kB / 0.6819 GB, free: 35.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.5096, allocations: 95.06 kB / 0.682 GB, free: 35.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.5097, allocations: 43.19 kB / 0.6821 GB, free: 35.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.5098, allocations: 4 kB / 0.6821 GB, free: 35.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.51, allocations: 99.2 kB / 0.6822 GB, free: 35.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.5101, allocations: 0 / 0.6822 GB, free: 35.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005891/0.5107, allocations: 200.4 kB / 0.6824 GB, free: 35.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.5107, allocations: 59.39 kB / 0.6824 GB, free: 35.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.5108, allocations: 116.8 kB / 0.6825 GB, free: 35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.5109, allocations: 37.14 kB / 0.6826 GB, free: 34.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.5109, allocations: 92.12 kB / 0.6826 GB, free: 34.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.511, allocations: 35.55 kB / 0.6827 GB, free: 34.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-06/0.511, allocations: 4 kB / 0.6827 GB, free: 34.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.823e-05/0.5111, allocations: 329.4 kB / 0.683 GB, free: 34.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.5112, allocations: 32.17 kB / 0.683 GB, free: 34.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.5113, allocations: 80.97 kB / 0.6831 GB, free: 34.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.5115, allocations: 47.89 kB / 0.6831 GB, free: 34.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5115, allocations: 2.938 kB / 0.6832 GB, free: 34.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003945/0.5119, allocations: 161.4 kB / 0.6833 GB, free: 34.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.512, allocations: 13.59 kB / 0.6833 GB, free: 34.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.512, allocations: 0 / 0.6833 GB, free: 34.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.512, allocations: 4 kB / 0.6833 GB, free: 34.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.5122, allocations: 19.98 kB / 0.6833 GB, free: 34.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5122, allocations: 2.969 kB / 0.6833 GB, free: 34.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.765e-05/0.5123, allocations: 15.95 kB / 0.6834 GB, free: 34.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.5124, allocations: 4 kB / 0.6834 GB, free: 34.11 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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 (21): * Single equations (assignments): 21 * 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.0001592/0.5125, allocations: 138 kB / 0.6835 GB, free: 33.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.5126, allocations: 7.906 kB / 0.6835 GB, free: 33.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.5126, allocations: 19.91 kB / 0.6835 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.5126, allocations: 0 / 0.6835 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.5126, allocations: 0 / 0.6835 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5127, allocations: 6.797 kB / 0.6835 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006569/0.5133, allocations: 454.8 kB / 0.684 GB, free: 33.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.5133, allocations: 0 / 0.684 GB, free: 33.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.434e-05/0.5134, allocations: 11.19 kB / 0.684 GB, free: 33.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.5134, allocations: 3.938 kB / 0.684 GB, free: 33.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.5135, allocations: 3.984 kB / 0.684 GB, free: 33.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.5135, allocations: 3.953 kB / 0.684 GB, free: 33.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5135, allocations: 0 / 0.684 GB, free: 33.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004013/0.5139, allocations: 257.1 kB / 0.6842 GB, free: 33.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.822e-05/0.514, allocations: 89 kB / 0.6843 GB, free: 33.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.514, allocations: 8 kB / 0.6843 GB, free: 33.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.5142, allocations: 15.11 kB / 0.6843 GB, free: 33.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.5143, allocations: 11.94 kB / 0.6843 GB, free: 33.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.5143, allocations: 4 kB / 0.6844 GB, free: 33.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.027e-05/0.5144, allocations: 95.27 kB / 0.6844 GB, free: 32.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5144, allocations: 0 / 0.6844 GB, free: 32.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003162/0.5147, allocations: 20 kB / 0.6845 GB, free: 32.91 MB / 362.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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001031/0.5148, allocations: 99.31 kB / 0.6846 GB, free: 32.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003503/0.5152, allocations: 112.5 kB / 0.6847 GB, free: 32.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5152, allocations: 4 kB / 0.6847 GB, free: 32.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.5154, allocations: 55.84 kB / 0.6847 GB, free: 32.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.5157, allocations: 18 kB / 0.6847 GB, free: 32.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005918/0.5163, allocations: 230.5 kB / 0.685 GB, free: 32.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.5165, allocations: 0.7104 MB / 0.6857 GB, free: 31.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.504e-05/0.5166, allocations: 8.875 kB / 0.6857 GB, free: 31.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.987e-05/0.5167, allocations: 15.44 kB / 0.6857 GB, free: 31.62 MB / 362.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5167, allocations: 3.656 kB / 0.6857 GB, free: 31.62 MB / 362.7 MB Notification: Performance of Templates: time 0.004089/0.5208, allocations: 0.8651 MB / 0.6865 GB, free: 30.83 MB / 362.7 MB