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.008066/0.008066, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001549/0.001549, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.565/1.565, allocations: 205.1 MB / 222.6 MB, free: 4.391 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.3199/0.3199, allocations: 38 MB / 307.9 MB, free: 10.35 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.001447/0.001447, allocations: 67.91 kB / 433 MB, free: 5.461 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.3424, allocations: 56.48 MB / 489.4 MB, free: 19.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00254/0.345, allocations: 1.509 MB / 490.9 MB, free: 18.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008413/0.3458, allocations: 0.5259 MB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.3459, allocations: 5.031 kB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.909e-05/0.3459, allocations: 5.109 kB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.177e-05/0.346, allocations: 12.12 kB / 491.5 MB, free: 18.49 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002012/0.3462, allocations: 39.25 kB / 491.5 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.3464, allocations: 86.52 kB / 491.6 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.3465, allocations: 19.73 kB / 491.6 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.3466, allocations: 45.86 kB / 491.7 MB, free: 18.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.031e-05/0.3467, allocations: 36.31 kB / 491.7 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.161e-05/0.3467, allocations: 7.625 kB / 491.7 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.66e-05/0.3467, allocations: 7.719 kB / 491.7 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.791e-05/0.3468, allocations: 22.28 kB / 491.8 MB, free: 18.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.3468, allocations: 38.84 kB / 491.8 MB, free: 18.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.347, allocations: 79.45 kB / 491.9 MB, free: 18.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.347, allocations: 0 / 491.9 MB, free: 18.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.347, allocations: 4.938 kB / 491.9 MB, free: 18.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.347, allocations: 0 / 491.9 MB, free: 18.3 MB / 382.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.0005483/0.3475, allocations: 395.9 kB / 492.3 MB, free: 17.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3476, allocations: 13.83 kB / 492.3 MB, free: 17.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.251e-05/0.3476, allocations: 13.12 kB / 492.3 MB, free: 17.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.312e-05/0.3477, allocations: 178.4 kB / 492.5 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.3478, allocations: 12.95 kB / 492.5 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.3478, allocations: 6.062 kB / 492.5 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.348, allocations: 91.23 kB / 492.6 MB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.348, allocations: 0 / 492.6 MB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.348, allocations: 2.359 kB / 492.6 MB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.348, allocations: 2.312 kB / 492.6 MB, free: 17.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.3482, allocations: 47.17 kB / 492.6 MB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004523/0.3486, allocations: 330.4 kB / 492.9 MB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.3488, allocations: 87.67 kB / 493 MB, free: 17.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.096e-05/0.3489, allocations: 41.66 kB / 493.1 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.349, allocations: 3.078 kB / 493.1 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.3492, allocations: 97.31 kB / 493.2 MB, free: 17.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.3492, allocations: 4 kB / 493.2 MB, free: 17.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004008/0.3496, allocations: 184.3 kB / 493.4 MB, free: 17.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.3496, allocations: 59.36 kB / 493.4 MB, free: 17.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.177e-05/0.3497, allocations: 116.8 kB / 493.5 MB, free: 16.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.3497, allocations: 32.36 kB / 493.6 MB, free: 16.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.3497, allocations: 89.95 kB / 493.6 MB, free: 16.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.3498, allocations: 34.89 kB / 493.7 MB, free: 16.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.195e-05/0.3498, allocations: 50.14 kB / 493.7 MB, free: 16.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.3499, allocations: 329.4 kB / 494 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.35, allocations: 33.28 kB / 494.1 MB, free: 16.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.701e-05/0.3501, allocations: 73.98 kB / 494.2 MB, free: 16.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.3503, allocations: 126 kB / 494.3 MB, free: 16.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3503, allocations: 0.9688 kB / 494.3 MB, free: 16.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002482/0.3505, allocations: 161.7 kB / 494.4 MB, free: 16.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3506, allocations: 5.812 kB / 494.4 MB, free: 16.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3506, allocations: 2.031 kB / 494.4 MB, free: 16.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.3506, allocations: 2 kB / 494.4 MB, free: 16.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3507, allocations: 31.28 kB / 494.5 MB, free: 16.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3507, allocations: 3.391 kB / 494.5 MB, free: 16.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.776e-05/0.3508, allocations: 16.38 kB / 494.5 MB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3508, allocations: 5.766 kB / 494.5 MB, free: 16.16 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 7.425e-05/0.3509, allocations: 129.3 kB / 494.6 MB, free: 16.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.3509, allocations: 13.78 kB / 494.6 MB, free: 16.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.3509, allocations: 10.97 kB / 494.7 MB, free: 16.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.351, allocations: 5.031 kB / 494.7 MB, free: 16.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.351, allocations: 1.188 kB / 494.7 MB, free: 16.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.351, allocations: 5.25 kB / 494.7 MB, free: 16.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004371/0.3514, allocations: 441.1 kB / 495.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3514, allocations: 7.938 kB / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.115e-05/0.3515, allocations: 7.547 kB / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.3515, allocations: 5.219 kB / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.3515, allocations: 6.906 kB / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.3515, allocations: 2.156 kB / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3515, allocations: 0 / 495.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002827/0.3518, allocations: 255.7 kB / 495.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.3518, allocations: 93.38 kB / 495.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.3519, allocations: 1.891 kB / 495.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.352, allocations: 15.3 kB / 495.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.352, allocations: 8.609 kB / 495.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3521, allocations: 4.953 kB / 495.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.372e-05/0.3521, allocations: 91.33 kB / 495.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3521, allocations: 0 / 495.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002438/0.3523, allocations: 21.81 kB / 495.6 MB, free: 15.27 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 8.35e-05/0.3524, allocations: 104.7 kB / 495.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002365/0.3527, allocations: 110.2 kB / 495.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3527, allocations: 3.938 kB / 495.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.3528, allocations: 53.69 kB / 495.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002549/0.3531, allocations: 19.41 kB / 495.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003728/0.3534, allocations: 192.1 kB / 496.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.3536, allocations: 0.6975 MB / 496.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.312e-05/0.3536, allocations: 10.06 kB / 496.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.994e-05/0.3537, allocations: 15.27 kB / 496.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3537, allocations: 0 / 496.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of Templates: time 0.003379/0.3571, allocations: 1.04 MB / 497.8 MB, free: 14.13 MB / 382.1 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)