Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007628/0.007628, allocations: 165 kB / 15.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.305/1.305, allocations: 170.8 MB / 186.6 MB, free: 1.137 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001728/0.001728, allocations: 118.6 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3233/0.3233, allocations: 38.05 MB / 303.7 MB, free: 42.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004114, allocations: 15.98 kB / 362.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 48.7 MB / 411.6 MB, free: 4.812 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3715/0.5026, allocations: 74.44 MB / 486 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/0.503, allocations: 63.31 kB / 486.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004107/0.5072, allocations: 1.449 MB / 487.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5072, allocations: 0 / 487.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.5072, allocations: 4 kB / 487.5 MB, free: 12.02 MB / 330.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.0004775/0.5077, allocations: 392.6 kB / 487.9 MB, free: 11.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.5077, allocations: 8.031 kB / 487.9 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.5078, allocations: 11.91 kB / 487.9 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.5079, allocations: 170.3 kB / 488.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.5079, allocations: 3.984 kB / 488.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.508, allocations: 15.88 kB / 488.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.5082, allocations: 92.89 kB / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.5082, allocations: 0 / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.5082, allocations: 3.391 kB / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.5082, allocations: 0 / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001146/0.5083, allocations: 47.16 kB / 488.2 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004911/0.5088, allocations: 332.6 kB / 488.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.509, allocations: 89.09 kB / 488.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.509, allocations: 11.92 kB / 488.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001916/0.5092, allocations: 102.6 kB / 488.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.5093, allocations: 0 / 488.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003816/0.5096, allocations: 188.1 kB / 489 MB, free: 10.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.5097, allocations: 55.41 kB / 489 MB, free: 10.49 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.5098, allocations: 108.4 kB / 489.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.5098, allocations: 37.45 kB / 489.2 MB, free: 10.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.947e-05/0.5098, allocations: 95.47 kB / 489.2 MB, free: 10.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.506e-05/0.5099, allocations: 35.25 kB / 489.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.5099, allocations: 3.812 kB / 489.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.51, allocations: 326.7 kB / 489.6 MB, free: 9.906 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.237e-05/0.5101, allocations: 35.91 kB / 489.6 MB, free: 9.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.5101, allocations: 79.17 kB / 489.7 MB, free: 9.797 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.546e-05/0.5102, allocations: 50.33 kB / 489.8 MB, free: 9.762 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5103, allocations: 0 / 489.8 MB, free: 9.762 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002205/0.5105, allocations: 163.8 kB / 489.9 MB, free: 9.629 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.5105, allocations: 8 kB / 489.9 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.5105, allocations: 0 / 489.9 MB, free: 9.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.5105, allocations: 4 kB / 489.9 MB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.5107, allocations: 23.92 kB / 490 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.5107, allocations: 0 / 490 MB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.624e-05/0.5107, allocations: 16.03 kB / 490 MB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.5108, allocations: 8.453 kB / 490 MB, free: 9.574 MB / 330.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.0001466/0.5109, allocations: 144.1 kB / 490.1 MB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.5109, allocations: 7.906 kB / 490.1 MB, free: 9.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.21e-05/0.511, allocations: 12.44 kB / 490.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.511, allocations: 0 / 490.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.511, allocations: 0 / 490.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.511, allocations: 3.984 kB / 490.1 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.5114, allocations: 456.3 kB / 490.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5114, allocations: 0 / 490.6 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.968e-05/0.5115, allocations: 8 kB / 490.6 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.5115, allocations: 0 / 490.6 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.5115, allocations: 7.922 kB / 490.6 MB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.5115, allocations: 0 / 490.6 MB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5115, allocations: 3.953 kB / 490.6 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.5118, allocations: 255 kB / 490.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.5118, allocations: 92.81 kB / 491 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/0.5118, allocations: 4 kB / 491 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.5119, allocations: 15.86 kB / 491 MB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.512, allocations: 11.98 kB / 491 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.512, allocations: 7.953 kB / 491 MB, free: 8.574 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.693e-05/0.5121, allocations: 96.77 kB / 491.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5121, allocations: 0 / 491.1 MB, free: 8.488 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000222/0.5123, allocations: 23.5 kB / 491.1 MB, free: 8.469 MB / 330.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 8.784e-05/0.5124, allocations: 99.23 kB / 491.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002206/0.5126, allocations: 115.1 kB / 491.3 MB, free: 8.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5126, allocations: 0 / 491.3 MB, free: 8.273 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.663e-05/0.5127, allocations: 60.02 kB / 491.4 MB, free: 8.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001994/0.5129, allocations: 9.688 kB / 491.4 MB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004911/0.5134, allocations: 247.7 kB / 491.6 MB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.5136, allocations: 0.6965 MB / 492.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.467e-05/0.5137, allocations: 12.88 kB / 492.3 MB, free: 7.238 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.5137, allocations: 11.44 kB / 492.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5137, allocations: 0 / 492.3 MB, free: 7.227 MB / 330.7 MB Notification: Performance of Templates: time 0.003103/0.5168, allocations: 0.8814 MB / 493.2 MB, free: 6.371 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)