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.001004/0.001004, allocations: 169.9 kB / 12.72 MB, free: 2.594 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.208/1.208, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001532/0.001532, allocations: 107.5 kB / 223.2 MB, free: 4.043 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.1868/0.1868, allocations: 37.99 MB / 300.4 MB, free: 5.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.662e-05, allocations: 4 kB / 357 MB, free: 32.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08588, allocations: 48.71 MB / 405.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.4317, allocations: 74.34 MB / 480 MB, free: 18.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.432, allocations: 62.02 kB / 480.1 MB, free: 18.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004424/0.4365, allocations: 1.433 MB / 481.5 MB, free: 18.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4365, allocations: 1.062 kB / 481.5 MB, free: 18.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.4365, allocations: 1.094 kB / 481.5 MB, free: 18.23 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.0004573/0.437, allocations: 384.4 kB / 481.9 MB, free: 17.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.437, allocations: 10.09 kB / 481.9 MB, free: 17.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.4371, allocations: 11.84 kB / 481.9 MB, free: 17.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.4372, allocations: 171.7 kB / 482.1 MB, free: 17.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.4372, allocations: 9.906 kB / 482.1 MB, free: 17.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.4373, allocations: 5.562 kB / 482.1 MB, free: 17.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.4374, allocations: 85.31 kB / 482.2 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.4375, allocations: 0 / 482.2 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.4375, allocations: 4.938 kB / 482.2 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.4375, allocations: 1.281 kB / 482.2 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.133e-05/0.4376, allocations: 34.83 kB / 482.2 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.4381, allocations: 336.1 kB / 482.6 MB, free: 17.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.4383, allocations: 89.3 kB / 482.6 MB, free: 17.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.488e-05/0.4384, allocations: 34.52 kB / 482.7 MB, free: 17.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.4384, allocations: 2.594 kB / 482.7 MB, free: 17.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001582/0.4386, allocations: 90.88 kB / 482.8 MB, free: 17.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.4386, allocations: 0 / 482.8 MB, free: 17.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003129/0.4389, allocations: 151.2 kB / 482.9 MB, free: 17.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.4389, allocations: 56.02 kB / 483 MB, free: 17.15 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.371e-05/0.439, allocations: 113.8 kB / 483.1 MB, free: 17.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.439, allocations: 31.95 kB / 483.1 MB, free: 17.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.627e-05/0.4391, allocations: 96.36 kB / 483.2 MB, free: 16.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.4391, allocations: 34.89 kB / 483.2 MB, free: 16.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.4391, allocations: 8.844 kB / 483.3 MB, free: 16.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.424e-05/0.4392, allocations: 325.2 kB / 483.6 MB, free: 16.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.552e-05/0.4393, allocations: 29 kB / 483.6 MB, free: 16.59 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.168e-05/0.4393, allocations: 66.98 kB / 483.7 MB, free: 16.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.773e-05/0.4394, allocations: 46.73 kB / 483.7 MB, free: 16.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4394, allocations: 1.25 kB / 483.7 MB, free: 16.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002017/0.4396, allocations: 147 kB / 483.9 MB, free: 16.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.4397, allocations: 7.844 kB / 483.9 MB, free: 16.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4397, allocations: 1.094 kB / 483.9 MB, free: 16.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.4397, allocations: 2.656 kB / 483.9 MB, free: 16.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.4398, allocations: 26.25 kB / 483.9 MB, free: 16.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.4398, allocations: 8.25 kB / 483.9 MB, free: 16.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.848e-05/0.4399, allocations: 10.23 kB / 483.9 MB, free: 16.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.4399, allocations: 8.438 kB / 483.9 MB, free: 16.48 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false 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 () * 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.0001017/0.44, allocations: 117.9 kB / 484 MB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.657e-05/0.44, allocations: 8.406 kB / 484 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.4401, allocations: 11.7 kB / 484.1 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.4401, allocations: 5.469 kB / 484.1 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.4401, allocations: 0 / 484.1 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4401, allocations: 5.453 kB / 484.1 MB, free: 16.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.4405, allocations: 435.8 kB / 484.5 MB, free: 16.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.4406, allocations: 0 / 484.5 MB, free: 16.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.4406, allocations: 13.55 kB / 484.5 MB, free: 16.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4406, allocations: 1.406 kB / 484.5 MB, free: 16.04 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.4407, allocations: 7.906 kB / 484.5 MB, free: 16.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.4407, allocations: 4 kB / 484.5 MB, free: 16.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4407, allocations: 9.359 kB / 484.5 MB, free: 16.03 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.4409, allocations: 235 kB / 484.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.724e-05/0.441, allocations: 94.22 kB / 484.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.441, allocations: 5.562 kB / 484.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.4411, allocations: 14.42 kB / 484.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.4412, allocations: 11.42 kB / 484.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.4412, allocations: 9.922 kB / 484.9 MB, free: 15.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.654e-05/0.4412, allocations: 89.7 kB / 485 MB, free: 15.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4412, allocations: 0 / 485 MB, free: 15.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.4415, allocations: 24.64 kB / 485 MB, free: 15.71 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) * 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.0001026/0.4416, allocations: 108.2 kB / 485.1 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002014/0.4418, allocations: 94.16 kB / 485.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4418, allocations: 320 / 485.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.4419, allocations: 50.3 kB / 485.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001793/0.4421, allocations: 8.578 kB / 485.3 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003049/0.4424, allocations: 137.8 kB / 485.4 MB, free: 15.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.4425, allocations: 0.6947 MB / 486.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.107e-05/0.4426, allocations: 11.97 kB / 486.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.4426, allocations: 19.5 kB / 486.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4426, allocations: 0 / 486.1 MB, free: 14.8 MB / 330.7 MB Notification: Performance of Templates: time 0.002983/0.4456, allocations: 0.8796 MB / 487 MB, free: 14.73 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)