Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 114.3 kB / 17.75 MB, free: 5.309 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.001766/0.001766, allocations: 189.3 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 242.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.91 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3579, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003317/0.3612, allocations: 1.875 MB / 403.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.363, allocations: 1.141 MB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.3631, allocations: 7.938 kB / 404.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.3634, allocations: 63.67 kB / 404.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.3637, allocations: 91.64 kB / 404.6 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.3644, allocations: 257.6 kB / 404.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.3646, allocations: 171.5 kB / 405 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.3648, allocations: 33.53 kB / 405 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.3649, allocations: 75.7 kB / 405.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001364/0.365, allocations: 75.67 kB / 405.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.3651, allocations: 8 kB / 405.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.3653, allocations: 71.89 kB / 405.3 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.3653, allocations: 43.84 kB / 405.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.3654, allocations: 79.47 kB / 405.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003397/0.3658, allocations: 240.3 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3658, allocations: 4 kB / 405.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3658, allocations: 0 / 405.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.3658, allocations: 3.938 kB / 405.6 MB, free: 4.664 MB / 318.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.0007835/0.3666, allocations: 0.5311 MB / 406.2 MB, free: 4.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3667, allocations: 11.89 kB / 406.2 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.3668, allocations: 24.66 kB / 406.2 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.3672, allocations: 287.6 kB / 406.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.3672, allocations: 8.375 kB / 406.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.003e-05/0.3672, allocations: 12.12 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000334/0.3676, allocations: 154.2 kB / 406.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3676, allocations: 4 kB / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.3676, allocations: 0 / 406.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3676, allocations: 4 kB / 406.7 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.3678, allocations: 39.91 kB / 406.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.3683, allocations: 370.5 kB / 407.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/0.3686, allocations: 123.9 kB / 407.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.164e-05/0.3687, allocations: 46.56 kB / 407.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.3687, allocations: 3.938 kB / 407.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000174/0.3689, allocations: 83.38 kB / 407.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.984e-06/0.3689, allocations: 4 kB / 407.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.000384/0.3693, allocations: 149.3 kB / 407.5 MB, free: 2.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.826e-05/0.3694, allocations: 162.2 kB / 407.6 MB, free: 2.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.3697, allocations: 322.9 kB / 407.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.3697, allocations: 33.7 kB / 408 MB, free: 2.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.3698, allocations: 128 kB / 408.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.903e-05/0.3699, allocations: 23.73 kB / 408.1 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.304e-05/0.3699, allocations: 29.72 kB / 408.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3701, allocations: 334.8 kB / 408.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.505e-05/0.3701, allocations: 23.98 kB / 408.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.3703, allocations: 90.84 kB / 408.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.3704, allocations: 80.22 kB / 408.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3704, allocations: 0 / 408.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002361/0.3707, allocations: 121.4 kB / 408.8 MB, free: 1.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3707, allocations: 8 kB / 408.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3707, allocations: 0 / 408.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3707, allocations: 4 kB / 408.8 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3709, allocations: 19.98 kB / 408.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.3709, allocations: 7.938 kB / 408.8 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.804e-05/0.371, allocations: 7.906 kB / 408.8 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.371, allocations: 8.062 kB / 408.8 MB, free: 1.113 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001394/0.3711, allocations: 161.8 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.231e-05/0.3712, allocations: 19.72 kB / 409 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.461e-05/0.3712, allocations: 25.7 kB / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3713, allocations: 0 / 409 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3713, allocations: 3.938 kB / 409 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.3714, allocations: 121.2 kB / 409.2 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.3714, allocations: 7.938 kB / 409.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.522e-05/0.3715, allocations: 12 kB / 409.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.587e-05/0.3716, allocations: 11.98 kB / 409.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003265/0.3719, allocations: 359.4 kB / 409.5 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003785/0.3723, allocations: 457 kB / 410 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001/0.3724, allocations: 43.97 kB / 410 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002229/0.3726, allocations: 241.9 kB / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Backend: time 6.81e-07/0.3726, allocations: 0 / 410.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.3742, allocations: 457.2 kB / 410.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of SimCode: time 0.0008875/0.3751, allocations: 0.8078 MB / 411.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.006822/0.3819, allocations: 2.995 MB / 414.5 MB, free: 11.52 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1)