Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001077/0.001077, allocations: 192 kB / 16.13 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.771/1.771, allocations: 205.1 MB / 222 MB, free: 4.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3951/0.3951, allocations: 39.94 MB / 309.3 MB, free: 9.648 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.2. 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.001418/0.001419, allocations: 71.89 kB / 376.9 MB, free: 13.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1792/0.1806, allocations: 56.88 MB / 433.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003486/0.1841, allocations: 1.571 MB / 435.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1852, allocations: 0.5191 MB / 435.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.212e-05/0.1853, allocations: 0 / 435.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.265e-05/0.1854, allocations: 3.938 kB / 435.9 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.1855, allocations: 19.86 kB / 435.9 MB, free: 2.285 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.1857, allocations: 31.97 kB / 435.9 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.1858, allocations: 83.7 kB / 436 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.186, allocations: 19.97 kB / 436 MB, free: 2.152 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.1861, allocations: 27.92 kB / 436.1 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.403e-05/0.1862, allocations: 43.81 kB / 436.1 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.469e-05/0.1862, allocations: 4 kB / 436.1 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.944e-05/0.1863, allocations: 4 kB / 436.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.388e-05/0.1863, allocations: 23.86 kB / 436.1 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.853e-05/0.1864, allocations: 39.78 kB / 436.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.1865, allocations: 71.98 kB / 436.3 MB, free: 1.941 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.1865, allocations: 4 kB / 436.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1865, allocations: 0 / 436.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1865, allocations: 0 / 436.3 MB, free: 1.938 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.0007828/0.1873, allocations: 399.2 kB / 436.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.1874, allocations: 8.031 kB / 436.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.964e-05/0.1875, allocations: 12.84 kB / 436.7 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.1877, allocations: 172.2 kB / 436.8 MB, free: 1.273 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.1877, allocations: 4.375 kB / 436.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.275e-05/0.1877, allocations: 20.11 kB / 436.9 MB, free: 1.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.188, allocations: 77.59 kB / 436.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.188, allocations: 0 / 436.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.188, allocations: 11.98 kB / 436.9 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.188, allocations: 0 / 436.9 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.1881, allocations: 43.98 kB / 437 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006153/0.1888, allocations: 324.8 kB / 437.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.189, allocations: 98.42 kB / 437.4 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.888e-05/0.1891, allocations: 44.83 kB / 437.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1891, allocations: 7.938 kB / 437.5 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.1894, allocations: 95.36 kB / 437.5 MB, free: 492 kB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.644e-06/0.1894, allocations: 0 / 437.5 MB, free: 492 kB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005115/0.1899, allocations: 185.5 kB / 437.7 MB, free: 300 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.391e-05/0.19, allocations: 59.52 kB / 437.8 MB, free: 228 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.1901, allocations: 117.8 kB / 437.9 MB, free: 100 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.1902, allocations: 37.7 kB / 437.9 MB, free: 56 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.1903, allocations: 88.62 kB / 438 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.468e-05/0.1903, allocations: 39.55 kB / 438.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.1904, allocations: 45.58 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1905, allocations: 318.8 kB / 438.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1907, allocations: 35.97 kB / 438.5 MB, free: 15.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.1908, allocations: 85.08 kB / 438.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.191, allocations: 117.1 kB / 438.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.191, allocations: 4 kB / 438.7 MB, free: 15.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000266/0.1913, allocations: 157.4 kB / 438.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.1913, allocations: 4 kB / 438.8 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1914, allocations: 7.938 kB / 438.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.1914, allocations: 0 / 438.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1915, allocations: 23.92 kB / 438.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.1915, allocations: 4 kB / 438.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.334e-05/0.1916, allocations: 20 kB / 438.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.1916, allocations: 4 kB / 438.9 MB, free: 15.06 MB / 382.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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.1917, allocations: 136 kB / 439 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.1918, allocations: 7.906 kB / 439 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.172e-05/0.1918, allocations: 20.42 kB / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1918, allocations: 0 / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1918, allocations: 0 / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1918, allocations: 0 / 439 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005581/0.1924, allocations: 450.9 kB / 439.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1924, allocations: 0 / 439.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.036e-05/0.1925, allocations: 7.984 kB / 439.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1925, allocations: 4.375 kB / 439.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1925, allocations: 0 / 439.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1925, allocations: 0 / 439.5 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1925, allocations: 3.984 kB / 439.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.1928, allocations: 267.4 kB / 439.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.298e-05/0.1929, allocations: 88.94 kB / 439.8 MB, free: 14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.803e-05/0.1929, allocations: 8 kB / 439.8 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.193, allocations: 7.984 kB / 439.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.496e-05/0.1931, allocations: 8 kB / 439.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.1931, allocations: 11.98 kB / 439.9 MB, free: 13.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.295e-05/0.1932, allocations: 91.27 kB / 440 MB, free: 13.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1932, allocations: 0 / 440 MB, free: 13.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.1935, allocations: 28 kB / 440 MB, free: 13.85 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001598/0.1936, allocations: 107 kB / 440.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002754/0.1939, allocations: 103.9 kB / 440.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1939, allocations: 0 / 440.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.194, allocations: 55.91 kB / 440.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.1944, allocations: 16.19 kB / 440.3 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.1951, allocations: 221.2 kB / 440.5 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.1954, allocations: 0.6926 MB / 441.2 MB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.436e-05/0.1955, allocations: 12.89 kB / 441.2 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.088e-05/0.1955, allocations: 15.42 kB / 441.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1955, allocations: 0 / 441.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of Templates: time 0.003527/0.199, allocations: 0.9143 MB / 442.1 MB, free: 11.66 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)