Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.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.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.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002732/0.002737, allocations: 360.8 kB / 15.95 MB, free: 6.203 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.144/4.144, allocations: 388.9 MB / 405.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003543/0.003543, allocations: 239.1 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.596/0.596, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004828/0.000483, allocations: 16 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1076, allocations: 54.86 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4731/0.5807, allocations: 80.79 MB / 0.759 GB, free: 4.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.581, allocations: 66.22 kB / 0.759 GB, free: 4.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005938/0.587, allocations: 1.458 MB / 0.7605 GB, free: 3.246 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.587, allocations: 4 kB / 0.7605 GB, free: 3.242 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.587, allocations: 0 / 0.7605 GB, free: 3.242 MB / 346.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.0006195/0.5877, allocations: 382.5 kB / 0.7608 GB, free: 2.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5877, allocations: 12.03 kB / 0.7608 GB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.5878, allocations: 23.78 kB / 0.7609 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001206/0.5879, allocations: 171 kB / 0.761 GB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.304e-05/0.5879, allocations: 7.375 kB / 0.761 GB, free: 2.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.832e-05/0.588, allocations: 7.938 kB / 0.761 GB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.5883, allocations: 86.7 kB / 0.7611 GB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.5883, allocations: 3.875 kB / 0.7611 GB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.5883, allocations: 3.938 kB / 0.7611 GB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.5883, allocations: 7.953 kB / 0.7611 GB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.5885, allocations: 52.97 kB / 0.7612 GB, free: 2.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.5892, allocations: 327.2 kB / 0.7615 GB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.5895, allocations: 88.73 kB / 0.7616 GB, free: 2.031 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.5896, allocations: 54.06 kB / 0.7616 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.5897, allocations: 0 / 0.7616 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002723/0.5899, allocations: 100.6 kB / 0.7617 GB, free: 1.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.395e-06/0.59, allocations: 0 / 0.7617 GB, free: 1.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006089/0.5906, allocations: 196.5 kB / 0.7619 GB, free: 1.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.5906, allocations: 59.39 kB / 0.762 GB, free: 1.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.5908, allocations: 113.4 kB / 0.7621 GB, free: 1.547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.5908, allocations: 33.14 kB / 0.7621 GB, free: 1.512 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.5909, allocations: 95.84 kB / 0.7622 GB, free: 1.418 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.5909, allocations: 34.36 kB / 0.7622 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.5909, allocations: 3.938 kB / 0.7622 GB, free: 1.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.408e-05/0.591, allocations: 332.4 kB / 0.7626 GB, free: 1.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.5912, allocations: 35.66 kB / 0.7626 GB, free: 1.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.5913, allocations: 76.02 kB / 0.7627 GB, free: 0.957 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.5915, allocations: 49.42 kB / 0.7627 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.5915, allocations: 0 / 0.7627 GB, free: 0.9258 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003939/0.5919, allocations: 159.3 kB / 0.7629 GB, free: 0.793 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.592, allocations: 11.95 kB / 0.7629 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.592, allocations: 4 kB / 0.7629 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.592, allocations: 0 / 0.7629 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.5922, allocations: 23.92 kB / 0.7629 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.5922, allocations: 4 kB / 0.7629 GB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.987e-05/0.5923, allocations: 11.22 kB / 0.7629 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.5924, allocations: 11.62 kB / 0.7629 GB, free: 0.7344 MB / 346.7 MB 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.0001292/0.5925, allocations: 132.2 kB / 0.7631 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.663e-05/0.5925, allocations: 11.91 kB / 0.7631 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.5926, allocations: 12.39 kB / 0.7631 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.5926, allocations: 4 kB / 0.7631 GB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.5926, allocations: 3.938 kB / 0.7631 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5926, allocations: 3.984 kB / 0.7631 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006757/0.5933, allocations: 439.9 kB / 0.7635 GB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.5934, allocations: 7.953 kB / 0.7635 GB, free: 132 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.398e-05/0.5934, allocations: 8 kB / 0.7635 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.5935, allocations: 0 / 0.7635 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.5935, allocations: 7.922 kB / 0.7635 GB, free: 116 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.5935, allocations: 4 kB / 0.7635 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5935, allocations: 0 / 0.7635 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.594, allocations: 266 kB / 0.7638 GB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.18e-05/0.5941, allocations: 84.97 kB / 0.7639 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.5942, allocations: 4 kB / 0.7639 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.5943, allocations: 11.61 kB / 0.7639 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.085e-05/0.5944, allocations: 11.98 kB / 0.7639 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.5944, allocations: 2.25 kB / 0.7639 GB, free: 15.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.127e-05/0.5945, allocations: 90.64 kB / 0.764 GB, free: 15.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5945, allocations: 4 kB / 0.764 GB, free: 15.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003669/0.5949, allocations: 23.88 kB / 0.764 GB, free: 15.64 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.000162/0.5951, allocations: 104.8 kB / 0.7641 GB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.5955, allocations: 105.3 kB / 0.7642 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.5955, allocations: 0 / 0.7642 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.5957, allocations: 54.59 kB / 0.7643 GB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.5961, allocations: 16.58 kB / 0.7643 GB, free: 15.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.5967, allocations: 227.1 kB / 0.7645 GB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.5971, allocations: 0.7004 MB / 0.7652 GB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.057e-05/0.5972, allocations: 8.891 kB / 0.7652 GB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.5973, allocations: 23.36 kB / 0.7652 GB, free: 14.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/0.5973, allocations: 0 / 0.7652 GB, free: 14.4 MB / 362.7 MB Notification: Performance of Templates: time 0.004461/0.6018, allocations: 0.8764 MB / 0.7661 GB, free: 13.55 MB / 362.7 MB