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.008184/0.008184, allocations: 107.4 kB / 15.74 MB, free: 6.441 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.001613/0.001613, allocations: 195.1 kB / 16.67 MB, free: 6.355 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.529/1.529, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.3033/0.3033, allocations: 38 MB / 307.9 MB, free: 10.22 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.00181/0.00181, allocations: 71.89 kB / 433 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3561, allocations: 56.47 MB / 489.4 MB, free: 19.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003275/0.3595, allocations: 1.501 MB / 490.9 MB, free: 18.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009811/0.3605, allocations: 0.5219 MB / 491.5 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.419e-05/0.3605, allocations: 3.938 kB / 491.5 MB, free: 18.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.493e-05/0.3606, allocations: 5.062 kB / 491.5 MB, free: 18.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.3607, allocations: 22.95 kB / 491.5 MB, free: 18.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.3609, allocations: 43.92 kB / 491.5 MB, free: 18.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.3611, allocations: 77.8 kB / 491.6 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.3612, allocations: 16.06 kB / 491.6 MB, free: 18.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.3614, allocations: 48.88 kB / 491.7 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001089/0.3615, allocations: 37.14 kB / 491.7 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.3615, allocations: 7.406 kB / 491.7 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.082e-05/0.3615, allocations: 7.656 kB / 491.7 MB, free: 18.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.772e-05/0.3616, allocations: 22.8 kB / 491.8 MB, free: 18.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.096e-05/0.3616, allocations: 38.2 kB / 491.8 MB, free: 18.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.3618, allocations: 84.88 kB / 491.9 MB, free: 18.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.3618, allocations: 0 / 491.9 MB, free: 18.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3618, allocations: 0 / 491.9 MB, free: 18.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.3619, allocations: 0.5625 kB / 491.9 MB, free: 18.34 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.000768/0.3626, allocations: 396.1 kB / 492.3 MB, free: 17.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.3627, allocations: 16.33 kB / 492.3 MB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.714e-05/0.3628, allocations: 10.55 kB / 492.3 MB, free: 17.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.3629, allocations: 173.6 kB / 492.5 MB, free: 17.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3629, allocations: 8.781 kB / 492.5 MB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.363, allocations: 7.438 kB / 492.5 MB, free: 17.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.3632, allocations: 94.39 kB / 492.6 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3632, allocations: 0.6094 kB / 492.6 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.3633, allocations: 5.453 kB / 492.6 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3633, allocations: 1.688 kB / 492.6 MB, free: 17.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.3634, allocations: 43.92 kB / 492.6 MB, free: 17.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.364, allocations: 325.4 kB / 492.9 MB, free: 17.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.3642, allocations: 93.2 kB / 493 MB, free: 17.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.544e-05/0.3644, allocations: 42.25 kB / 493.1 MB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.3644, allocations: 2.062 kB / 493.1 MB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.3646, allocations: 97.17 kB / 493.2 MB, free: 17.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3646, allocations: 1.281 kB / 493.2 MB, free: 17.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004611/0.3651, allocations: 190.5 kB / 493.4 MB, free: 17.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.3652, allocations: 55.84 kB / 493.4 MB, free: 17.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.954e-05/0.3653, allocations: 120.5 kB / 493.5 MB, free: 16.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.3653, allocations: 34.11 kB / 493.6 MB, free: 16.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.489e-05/0.3653, allocations: 92.34 kB / 493.7 MB, free: 16.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.389e-05/0.3654, allocations: 40.17 kB / 493.7 MB, free: 16.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.315e-05/0.3655, allocations: 41.05 kB / 493.7 MB, free: 16.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.3656, allocations: 324.6 kB / 494 MB, free: 16.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.152e-05/0.3657, allocations: 33.2 kB / 494.1 MB, free: 16.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.3658, allocations: 87.08 kB / 494.2 MB, free: 16.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001937/0.366, allocations: 118.3 kB / 494.3 MB, free: 16.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.366, allocations: 1.5 kB / 494.3 MB, free: 16.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002776/0.3663, allocations: 160.7 kB / 494.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3663, allocations: 5.719 kB / 494.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3663, allocations: 1.953 kB / 494.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.3663, allocations: 2.219 kB / 494.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3665, allocations: 26.86 kB / 494.5 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3665, allocations: 3.625 kB / 494.5 MB, free: 16.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.127e-05/0.3666, allocations: 16.73 kB / 494.5 MB, free: 16.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.909e-05/0.3666, allocations: 9.328 kB / 494.5 MB, free: 16.2 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.0001099/0.3667, allocations: 134 kB / 494.6 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.783e-05/0.3667, allocations: 8.922 kB / 494.6 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.225e-05/0.3668, allocations: 10.52 kB / 494.7 MB, free: 16.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3668, allocations: 5.984 kB / 494.7 MB, free: 16.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.3668, allocations: 1.438 kB / 494.7 MB, free: 16.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.3668, allocations: 1.359 kB / 494.7 MB, free: 16.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.3673, allocations: 444 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.3673, allocations: 4.641 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.3674, allocations: 7.391 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3674, allocations: 1.859 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.3674, allocations: 2.156 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.3674, allocations: 0.9688 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3674, allocations: 0.5625 kB / 495.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003223/0.3677, allocations: 260 kB / 495.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.3678, allocations: 93.84 kB / 495.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.3678, allocations: 5.719 kB / 495.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3679, allocations: 8.453 kB / 495.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.009e-05/0.368, allocations: 7.297 kB / 495.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.368, allocations: 9.438 kB / 495.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.533e-05/0.3681, allocations: 94.5 kB / 495.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3681, allocations: 0 / 495.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.3683, allocations: 22.31 kB / 495.6 MB, free: 15.31 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.0001045/0.3685, allocations: 108 kB / 495.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.3687, allocations: 103.3 kB / 495.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3687, allocations: 0 / 495.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.3689, allocations: 60.09 kB / 495.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.3692, allocations: 20.75 kB / 495.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004378/0.3696, allocations: 193 kB / 496.1 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.3698, allocations: 0.6926 MB / 496.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.937e-05/0.3698, allocations: 10.75 kB / 496.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.067e-05/0.3699, allocations: 14.53 kB / 496.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.3699, allocations: 0 / 496.8 MB, free: 14.3 MB / 382.1 MB Notification: Performance of Templates: time 0.004605/0.3745, allocations: 1.014 MB / 497.8 MB, free: 14.18 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)