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.006253/0.006254, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.00117/0.00117, allocations: 191.6 kB / 16.67 MB, free: 5.973 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.642/1.642, allocations: 205.1 MB / 222.5 MB, free: 4.469 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.4335/0.4335, allocations: 37.99 MB / 307.9 MB, free: 10.18 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.001746/0.001746, allocations: 68.56 kB / 433 MB, free: 5.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.446, allocations: 56.47 MB / 489.4 MB, free: 19.89 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003006/0.449, allocations: 1.511 MB / 490.9 MB, free: 18.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.4501, allocations: 0.5244 MB / 491.5 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.089e-05/0.4502, allocations: 3.938 kB / 491.5 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.742e-05/0.4502, allocations: 5.75 kB / 491.5 MB, free: 18.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.987e-05/0.4504, allocations: 18.98 kB / 491.5 MB, free: 18.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.4506, allocations: 39.88 kB / 491.5 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001631/0.4508, allocations: 86.38 kB / 491.6 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.4509, allocations: 15.95 kB / 491.6 MB, free: 18.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.4511, allocations: 40.2 kB / 491.7 MB, free: 18.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.4512, allocations: 48.75 kB / 491.7 MB, free: 18.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.4512, allocations: 7.438 kB / 491.7 MB, free: 18.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.248e-05/0.4513, allocations: 6.781 kB / 491.7 MB, free: 18.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.646e-05/0.4513, allocations: 21.47 kB / 491.8 MB, free: 18.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.049e-05/0.4514, allocations: 36.33 kB / 491.8 MB, free: 18.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.4515, allocations: 80.28 kB / 491.9 MB, free: 18.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.4515, allocations: 1.188 kB / 491.9 MB, free: 18.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.4515, allocations: 0 / 491.9 MB, free: 18.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.4516, allocations: 0 / 491.9 MB, free: 18.25 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.0007025/0.4523, allocations: 399.8 kB / 492.3 MB, free: 17.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.4523, allocations: 12.42 kB / 492.3 MB, free: 17.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.4524, allocations: 15.08 kB / 492.3 MB, free: 17.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.4525, allocations: 177.5 kB / 492.5 MB, free: 17.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.4526, allocations: 4.328 kB / 492.5 MB, free: 17.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.378e-05/0.4526, allocations: 10.67 kB / 492.5 MB, free: 17.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.4528, allocations: 87.81 kB / 492.6 MB, free: 17.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4528, allocations: 0 / 492.6 MB, free: 17.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.4529, allocations: 6.219 kB / 492.6 MB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4529, allocations: 0.9375 kB / 492.6 MB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.453, allocations: 44.09 kB / 492.6 MB, free: 17.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.4536, allocations: 326.2 kB / 492.9 MB, free: 17.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.4538, allocations: 92.17 kB / 493 MB, free: 17.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.4539, allocations: 41.83 kB / 493.1 MB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.454, allocations: 3.141 kB / 493.1 MB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.4543, allocations: 105.3 kB / 493.2 MB, free: 17.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.4543, allocations: 0 / 493.2 MB, free: 17.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004932/0.4548, allocations: 187.4 kB / 493.4 MB, free: 17.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.4548, allocations: 56.67 kB / 493.4 MB, free: 17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.332e-05/0.4549, allocations: 116.2 kB / 493.5 MB, free: 16.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.455, allocations: 34.23 kB / 493.6 MB, free: 16.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.949e-05/0.455, allocations: 92.12 kB / 493.6 MB, free: 16.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.4551, allocations: 39.8 kB / 493.7 MB, free: 16.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.626e-05/0.4551, allocations: 42.19 kB / 493.7 MB, free: 16.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4553, allocations: 324.7 kB / 494 MB, free: 16.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.375e-05/0.4554, allocations: 32.7 kB / 494.1 MB, free: 16.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.4555, allocations: 81.8 kB / 494.2 MB, free: 16.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.4557, allocations: 122.5 kB / 494.3 MB, free: 16.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4557, allocations: 0.5625 kB / 494.3 MB, free: 16.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003083/0.456, allocations: 158 kB / 494.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4561, allocations: 6.969 kB / 494.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4561, allocations: 1.031 kB / 494.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.4561, allocations: 6.031 kB / 494.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.4562, allocations: 27.17 kB / 494.5 MB, free: 16.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.4563, allocations: 2.828 kB / 494.5 MB, free: 16.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.048e-05/0.4563, allocations: 17.09 kB / 494.5 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.171e-05/0.4564, allocations: 5.844 kB / 494.5 MB, free: 16.12 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.0001414/0.4565, allocations: 134.3 kB / 494.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.137e-05/0.4566, allocations: 8.219 kB / 494.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.49e-05/0.4566, allocations: 14.83 kB / 494.7 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.4566, allocations: 6.094 kB / 494.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4566, allocations: 0 / 494.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4566, allocations: 5.125 kB / 494.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005825/0.4572, allocations: 441.2 kB / 495.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4573, allocations: 8.969 kB / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.4573, allocations: 7.5 kB / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.4573, allocations: 1.062 kB / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.4573, allocations: 4.203 kB / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4574, allocations: 0 / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4574, allocations: 1.469 kB / 495.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.4577, allocations: 250.7 kB / 495.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.4578, allocations: 96.84 kB / 495.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.4578, allocations: 6.609 kB / 495.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.4579, allocations: 8.453 kB / 495.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.458, allocations: 10.88 kB / 495.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.458, allocations: 5.594 kB / 495.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.998e-05/0.458, allocations: 99.61 kB / 495.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4581, allocations: 0 / 495.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.4583, allocations: 20.72 kB / 495.6 MB, free: 15.22 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.0001015/0.4585, allocations: 113.1 kB / 495.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002775/0.4587, allocations: 99.02 kB / 495.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4587, allocations: 0 / 495.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.4589, allocations: 56.72 kB / 495.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.4592, allocations: 19.69 kB / 495.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.4597, allocations: 191.2 kB / 496.1 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.4598, allocations: 0.6948 MB / 496.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.347e-05/0.4599, allocations: 10.98 kB / 496.8 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.4599, allocations: 22.64 kB / 496.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4599, allocations: 0 / 496.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of Templates: time 0.004239/0.4642, allocations: 1.007 MB / 497.8 MB, free: 14.1 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)