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.001624/0.001624, allocations: 157 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.54/1.54, allocations: 170.7 MB / 178.7 MB, free: 7.039 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.001664/0.001664, allocations: 112.3 kB / 218 MB, free: 15.33 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.2285/0.2285, allocations: 37.98 MB / 295.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.685e-05, allocations: 4 kB / 350 MB, free: 32.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2737, allocations: 48.69 MB / 398.7 MB, free: 6.039 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1035/0.3772, allocations: 73.68 MB / 472.4 MB, free: 9.438 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.3775, allocations: 68.8 kB / 472.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004142/0.3816, allocations: 1.428 MB / 473.9 MB, free: 7.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3817, allocations: 0 / 473.9 MB, free: 7.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.363e-06/0.3817, allocations: 0 / 473.9 MB, free: 7.941 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.000485/0.3822, allocations: 382.8 kB / 474.3 MB, free: 7.523 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3822, allocations: 8.031 kB / 474.3 MB, free: 7.516 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.678e-05/0.3823, allocations: 7.906 kB / 474.3 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001682/0.3825, allocations: 179.2 kB / 474.5 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.3825, allocations: 3.938 kB / 474.5 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.3825, allocations: 15.44 kB / 474.5 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.708e-05/0.3826, allocations: 28 kB / 474.5 MB, free: 7.25 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.3828, allocations: 69.66 kB / 474.6 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3828, allocations: 4 kB / 474.6 MB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3828, allocations: 4 kB / 474.6 MB, free: 7.168 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3828, allocations: 0 / 474.6 MB, free: 7.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.3833, allocations: 305.2 kB / 474.9 MB, free: 6.832 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.3835, allocations: 78.5 kB / 475 MB, free: 6.746 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.217e-05/0.3836, allocations: 36.86 kB / 475 MB, free: 6.707 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.3836, allocations: 11.98 kB / 475 MB, free: 6.695 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001567/0.3838, allocations: 79.38 kB / 475.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.134e-06/0.3838, allocations: 0 / 475.1 MB, free: 6.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003079/0.3841, allocations: 133.6 kB / 475.2 MB, free: 6.469 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.3841, allocations: 55.41 kB / 475.3 MB, free: 6.402 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.507e-05/0.3843, allocations: 110.3 kB / 475.4 MB, free: 6.289 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3843, allocations: 37.7 kB / 475.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.497e-05/0.3844, allocations: 92.05 kB / 475.5 MB, free: 6.152 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.3844, allocations: 35.58 kB / 475.5 MB, free: 6.117 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.332e-06/0.3844, allocations: 0 / 475.5 MB, free: 6.117 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3846, allocations: 326.8 kB / 475.9 MB, free: 5.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.3846, allocations: 20.19 kB / 475.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.779e-05/0.3847, allocations: 76.73 kB / 475.9 MB, free: 5.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.503e-05/0.3848, allocations: 35.89 kB / 476 MB, free: 5.641 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3848, allocations: 0 / 476 MB, free: 5.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002073/0.3851, allocations: 133.8 kB / 476.1 MB, free: 5.504 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3851, allocations: 4 kB / 476.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3851, allocations: 4.156 kB / 476.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3851, allocations: 4 kB / 476.1 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3853, allocations: 24.14 kB / 476.1 MB, free: 5.469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.3853, allocations: 4 kB / 476.2 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.004e-05/0.3853, allocations: 7.938 kB / 476.2 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.3854, allocations: 8 kB / 476.2 MB, free: 5.449 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.0001596/0.3855, allocations: 130 kB / 476.3 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.3856, allocations: 11.91 kB / 476.3 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.3856, allocations: 8.75 kB / 476.3 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3856, allocations: 8 kB / 476.3 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3856, allocations: 0 / 476.3 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3856, allocations: 3.938 kB / 476.3 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.3861, allocations: 407.9 kB / 476.7 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3861, allocations: 4 kB / 476.7 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-05/0.3862, allocations: 11.98 kB / 476.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3862, allocations: 8 kB / 476.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3862, allocations: 0 / 476.7 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3862, allocations: 3.938 kB / 476.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3862, allocations: 0 / 476.8 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002748/0.3865, allocations: 235.4 kB / 477 MB, free: 4.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/0.3866, allocations: 89 kB / 477.1 MB, free: 4.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.3866, allocations: 8 kB / 477.1 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.3867, allocations: 11.98 kB / 477.1 MB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.3868, allocations: 7.984 kB / 477.1 MB, free: 4.445 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.3868, allocations: 4 kB / 477.1 MB, free: 4.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.962e-05/0.3869, allocations: 91.27 kB / 477.2 MB, free: 4.352 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3869, allocations: 0 / 477.2 MB, free: 4.352 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.3871, allocations: 20 kB / 477.2 MB, free: 4.332 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.0001284/0.3873, allocations: 99.19 kB / 477.3 MB, free: 4.223 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001805/0.3875, allocations: 84.11 kB / 477.4 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3875, allocations: 4.125 kB / 477.4 MB, free: 4.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.122e-05/0.3875, allocations: 36 kB / 477.4 MB, free: 4.102 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001979/0.3877, allocations: 15.89 kB / 477.4 MB, free: 4.086 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003503/0.3881, allocations: 132.5 kB / 477.6 MB, free: 3.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.3884, allocations: 0.7002 MB / 478.3 MB, free: 3.203 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.668e-05/0.3884, allocations: 12.88 kB / 478.3 MB, free: 3.191 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.3885, allocations: 15.44 kB / 478.3 MB, free: 3.176 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3885, allocations: 0 / 478.3 MB, free: 3.176 MB / 330.7 MB Notification: Performance of Templates: time 0.00305/0.3915, allocations: 0.8403 MB / 479.1 MB, free: 2.336 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)