Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.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.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005633/0.005633, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001138/0.001138, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.682/1.682, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.5249/0.5249, allocations: 39.95 MB / 309.8 MB, free: 9.305 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.001807/0.001807, allocations: 67.91 kB / 435.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5165/0.5184, allocations: 56.88 MB / 492.6 MB, free: 19.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004869/0.5233, allocations: 1.871 MB / 494.5 MB, free: 18.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.5255, allocations: 0.9712 MB / 495.5 MB, free: 17.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002806/0.5258, allocations: 5.312 kB / 495.5 MB, free: 17.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008733/0.5267, allocations: 176.5 kB / 495.7 MB, free: 17.4 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005701/0.5273, allocations: 131.6 kB / 495.8 MB, free: 17.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000762/0.5281, allocations: 163 kB / 496 MB, free: 17.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006525/0.5288, allocations: 283.1 kB / 496.2 MB, free: 17.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.5289, allocations: 36.72 kB / 496.3 MB, free: 17.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.5293, allocations: 111.6 kB / 496.4 MB, free: 17.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003083/0.5296, allocations: 116.6 kB / 496.5 MB, free: 17.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.5297, allocations: 16.5 kB / 496.5 MB, free: 17.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003015/0.53, allocations: 59.91 kB / 496.6 MB, free: 17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.5302, allocations: 62.95 kB / 496.6 MB, free: 16.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.5304, allocations: 115.3 kB / 496.7 MB, free: 16.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006911/0.5311, allocations: 282 kB / 497 MB, free: 16.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.5311, allocations: 0 / 497 MB, free: 16.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.5311, allocations: 1.312 kB / 497 MB, free: 16.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.354e-05/0.5311, allocations: 0 / 497 MB, free: 16.79 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001423/0.5326, allocations: 0.6504 MB / 497.7 MB, free: 16.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.5326, allocations: 17.05 kB / 497.7 MB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.5328, allocations: 29.5 kB / 497.7 MB, free: 16.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.5333, allocations: 280.4 kB / 498 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.5334, allocations: 93.08 kB / 498.1 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.5334, allocations: 15.62 kB / 498.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/0.5338, allocations: 160.1 kB / 498.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.5339, allocations: 5.062 kB / 498.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.5339, allocations: 5.078 kB / 498.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.5339, allocations: 2.375 kB / 498.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002733/0.5342, allocations: 93.28 kB / 498.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009888/0.5352, allocations: 0.6086 MB / 499 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.5356, allocations: 175.6 kB / 499.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.5358, allocations: 95.92 kB / 499.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.5358, allocations: 1.156 kB / 499.2 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00042/0.5362, allocations: 443.2 kB / 499.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.5362, allocations: 0 / 499.7 MB, free: 14.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008804/0.5371, allocations: 446.2 kB / 0.4884 GB, free: 14.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.5372, allocations: 215.1 kB / 0.4886 GB, free: 14.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.5376, allocations: 310.1 kB / 0.4889 GB, free: 13.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.5376, allocations: 34.55 kB / 0.4889 GB, free: 13.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.5377, allocations: 137.9 kB / 0.489 GB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.332e-05/0.5378, allocations: 51.72 kB / 0.4891 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.123e-05/0.5379, allocations: 51.64 kB / 0.4891 GB, free: 13.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.013e-05/0.538, allocations: 342.8 kB / 0.4895 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.5381, allocations: 53.11 kB / 0.4895 GB, free: 13.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.5383, allocations: 147 kB / 0.4897 GB, free: 13.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.5387, allocations: 361.3 kB / 0.49 GB, free: 12.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.5388, allocations: 3.938 kB / 0.49 GB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006209/0.5394, allocations: 339.7 kB / 0.4903 GB, free: 12.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.524e-05/0.5395, allocations: 96.59 kB / 0.4904 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.5395, allocations: 2.438 kB / 0.4904 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.5395, allocations: 8.062 kB / 0.4904 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.5396, allocations: 22.17 kB / 0.4904 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.5396, allocations: 3.703 kB / 0.4905 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.5398, allocations: 28.89 kB / 0.4905 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.5398, allocations: 8.906 kB / 0.4905 GB, free: 12.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002114/0.5401, allocations: 272.3 kB / 0.4907 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.5401, allocations: 31 kB / 0.4908 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.383e-05/0.5402, allocations: 32.12 kB / 0.4908 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.5402, allocations: 3.75 kB / 0.4908 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5402, allocations: 0 / 0.4908 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.5402, allocations: 2.641 kB / 0.4908 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.5406, allocations: 299.1 kB / 0.4911 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.5406, allocations: 0 / 0.4911 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-05/0.5407, allocations: 9.344 kB / 0.4911 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.5407, allocations: 5.75 kB / 0.4911 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/0.5407, allocations: 14.39 kB / 0.4911 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.5407, allocations: 1.812 kB / 0.4911 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5407, allocations: 4 kB / 0.4911 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/0.5414, allocations: 435.3 kB / 0.4915 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.071e-05/0.5415, allocations: 99.95 kB / 0.4916 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.466e-05/0.5416, allocations: 16.59 kB / 0.4917 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.5417, allocations: 26.16 kB / 0.4917 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.5418, allocations: 19.91 kB / 0.4917 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/0.5418, allocations: 12.55 kB / 0.4917 GB, free: 11.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002499/0.5421, allocations: 230.7 kB / 0.4919 GB, free: 11.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5421, allocations: 0 / 0.4919 GB, free: 11.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004075/0.5425, allocations: 65.59 kB / 0.492 GB, free: 11.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.0009934/0.5435, allocations: 437.2 kB / 0.4924 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005963/0.5441, allocations: 391.3 kB / 0.4928 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5441, allocations: 0 / 0.4928 GB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.5445, allocations: 351.2 kB / 0.4931 GB, free: 10.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.5449, allocations: 56.12 kB / 0.4932 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009393/0.5459, allocations: 454.5 kB / 0.4936 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.5461, allocations: 0.745 MB / 0.4943 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.5463, allocations: 28.23 kB / 0.4944 GB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.059e-05/0.5464, allocations: 24.06 kB / 0.4944 GB, free: 9.625 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.5464, allocations: 0 / 0.4944 GB, free: 9.625 MB / 382.1 MB Notification: Performance of Templates: time 0.01027/0.5566, allocations: 3.584 MB / 0.4979 GB, free: 8.227 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe 2>&1)