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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007822/0.0007822, allocations: 91.69 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008523/0.0008524, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.4 MB / 222.1 MB, free: 5.867 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2579/0.2579, allocations: 38.03 MB / 308.4 MB, free: 10.24 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005076/0.0005077, allocations: 16 kB / 376.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08424/0.08476, allocations: 57.52 MB / 433.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001309/0.0861, allocations: 1.22 MB / 435.2 MB, free: 4.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006397/0.08675, allocations: 0.4922 MB / 435.7 MB, free: 3.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.487e-05/0.0868, allocations: 3.938 kB / 435.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.08682, allocations: 0 / 435.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.633e-05/0.08689, allocations: 15.88 kB / 435.7 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.08704, allocations: 23.95 kB / 435.7 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.071e-05/0.08714, allocations: 83.7 kB / 435.8 MB, free: 3.711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.467e-05/0.08722, allocations: 11.84 kB / 435.8 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.287e-05/0.08731, allocations: 39.91 kB / 435.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.543e-05/0.08739, allocations: 35.83 kB / 435.9 MB, free: 3.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.08741, allocations: 4 kB / 435.9 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.232e-05/0.08743, allocations: 4 kB / 435.9 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.08746, allocations: 23.91 kB / 435.9 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.813e-05/0.08749, allocations: 33.7 kB / 435.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.007e-05/0.08757, allocations: 52.12 kB / 436 MB, free: 3.504 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.08758, allocations: 0 / 436 MB, free: 3.504 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.08758, allocations: 3.938 kB / 436 MB, free: 3.5 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.936e-06/0.08759, allocations: 0 / 436 MB, free: 3.5 MB / 366.1 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.0004622/0.08806, allocations: 387.1 kB / 436.4 MB, free: 3.074 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.08809, allocations: 12.02 kB / 436.4 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.166e-05/0.08813, allocations: 11.86 kB / 436.4 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.996e-05/0.08823, allocations: 178.9 kB / 436.6 MB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.08826, allocations: 4 kB / 436.6 MB, free: 2.832 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.08828, allocations: 4 kB / 436.6 MB, free: 2.828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/0.08845, allocations: 85.64 kB / 436.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.08847, allocations: 11.88 kB / 436.7 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.08849, allocations: 11.98 kB / 436.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.0885, allocations: 0 / 436.7 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/0.08862, allocations: 47.98 kB / 436.7 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.08906, allocations: 328.7 kB / 437 MB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001589/0.08923, allocations: 90.55 kB / 437.1 MB, free: 2.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.069e-05/0.08932, allocations: 44.83 kB / 437.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.893e-05/0.08934, allocations: 7.938 kB / 437.2 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/0.08952, allocations: 99.36 kB / 437.3 MB, free: 2.035 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.08954, allocations: 0 / 437.3 MB, free: 2.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003622/0.0899, allocations: 193.6 kB / 437.5 MB, free: 1.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.08995, allocations: 59.39 kB / 437.5 MB, free: 1.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.911e-05/0.09003, allocations: 118 kB / 437.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.09006, allocations: 29.7 kB / 437.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.088e-05/0.09011, allocations: 104.3 kB / 437.8 MB, free: 1.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.09015, allocations: 27.66 kB / 437.8 MB, free: 1.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-06/0.09016, allocations: 4 kB / 437.8 MB, free: 1.473 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.09026, allocations: 322.8 kB / 438.1 MB, free: 1.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.946e-05/0.09034, allocations: 36.34 kB / 438.2 MB, free: 1.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.844e-05/0.09045, allocations: 81.88 kB / 438.2 MB, free: 1.016 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.362e-05/0.09055, allocations: 44 kB / 438.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.09056, allocations: 224 / 438.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002498/0.09082, allocations: 165.3 kB / 438.4 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.09084, allocations: 8 kB / 438.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.09085, allocations: 0 / 438.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.09086, allocations: 8.328 kB / 438.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.09097, allocations: 23.92 kB / 438.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.09098, allocations: 0 / 438.5 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.797e-05/0.09105, allocations: 15.94 kB / 438.5 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.09107, allocations: 20.06 kB / 438.5 MB, free: 0.7305 MB / 366.1 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 8.452e-05/0.09116, allocations: 128 kB / 438.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.09118, allocations: 7.906 kB / 438.7 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.09121, allocations: 12.5 kB / 438.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.09122, allocations: 0 / 438.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.09123, allocations: 3.953 kB / 438.7 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.09124, allocations: 3.984 kB / 438.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.09169, allocations: 454.3 kB / 439.1 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.0917, allocations: 0 / 439.1 MB, free: 76 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.477e-05/0.09176, allocations: 8 kB / 439.1 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.09177, allocations: 7.891 kB / 439.1 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.09179, allocations: 3.984 kB / 439.1 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.09179, allocations: 0 / 439.1 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.0918, allocations: 0 / 439.1 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.09208, allocations: 255.3 kB / 439.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-05/0.09213, allocations: 88.95 kB / 439.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.09216, allocations: 7.953 kB / 439.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.857e-05/0.09226, allocations: 11.98 kB / 439.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.0923, allocations: 7.984 kB / 439.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.09232, allocations: 8 kB / 439.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.322e-05/0.09237, allocations: 99.27 kB / 439.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09238, allocations: 0 / 439.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.09263, allocations: 24 kB / 439.6 MB, free: 15.53 MB / 382.1 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.14e-05/0.09271, allocations: 96.27 kB / 439.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.09294, allocations: 115.8 kB / 439.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.09295, allocations: 320 / 439.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001/0.09305, allocations: 56.72 kB / 439.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.0933, allocations: 12.27 kB / 439.9 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003516/0.09366, allocations: 229.3 kB / 440.1 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.09388, allocations: 0.6929 MB / 440.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.848e-05/0.09392, allocations: 12.81 kB / 440.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.786e-05/0.09396, allocations: 15.44 kB / 440.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09396, allocations: 3.938 kB / 440.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of Templates: time 0.00252/0.09649, allocations: 0.859 MB / 441.7 MB, free: 13.38 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: