Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 115.5 kB / 17.08 MB, free: 5.996 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.001269/0.001269, allocations: 193.3 kB / 18.01 MB, free: 5.082 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.335/1.335, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1951/0.1951, allocations: 43.53 MB / 314.8 MB, free: 468 kB / 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: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 64.23 kB / 442.5 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1029, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003321/0.1063, allocations: 1.883 MB / 0.4904 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1079, allocations: 0.9597 MB / 0.4913 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.108, allocations: 0 / 0.4913 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006277/0.1087, allocations: 191.4 kB / 0.4915 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.1091, allocations: 131.4 kB / 0.4916 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004759/0.1095, allocations: 167.6 kB / 0.4918 GB, free: 8.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.1099, allocations: 279.3 kB / 0.492 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.1101, allocations: 41.59 kB / 0.4921 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/0.1103, allocations: 107.7 kB / 0.4922 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1104, allocations: 115.5 kB / 0.4923 GB, free: 7.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.1105, allocations: 20 kB / 0.4923 GB, free: 7.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002051/0.1107, allocations: 67.95 kB / 0.4924 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.1108, allocations: 55.83 kB / 0.4924 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.111, allocations: 119.4 kB / 0.4925 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.1115, allocations: 267.2 kB / 0.4928 GB, free: 7.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1115, allocations: 3.984 kB / 0.4928 GB, free: 7.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1115, allocations: 0 / 0.4928 GB, free: 7.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.1115, allocations: 0 / 0.4928 GB, free: 7.426 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.001018/0.1125, allocations: 0.6571 MB / 0.4934 GB, free: 6.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1126, allocations: 11.89 kB / 0.4934 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/0.1127, allocations: 32.66 kB / 0.4935 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.113, allocations: 282.7 kB / 0.4937 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.1132, allocations: 89.67 kB / 0.4938 GB, free: 6.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1132, allocations: 19.94 kB / 0.4939 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.1135, allocations: 157 kB / 0.494 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1135, allocations: 0 / 0.494 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.1136, allocations: 8 kB / 0.494 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1136, allocations: 7.984 kB / 0.494 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.1138, allocations: 91.86 kB / 0.4941 GB, free: 5.938 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008721/0.1147, allocations: 0.5985 MB / 0.4947 GB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.1151, allocations: 183.9 kB / 0.4949 GB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.1152, allocations: 90.48 kB / 0.495 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.1153, allocations: 4 kB / 0.495 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004385/0.1157, allocations: 440.9 kB / 0.4954 GB, free: 4.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.1157, allocations: 0 / 0.4954 GB, free: 4.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008159/0.1165, allocations: 450.2 kB / 0.4958 GB, free: 4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.1167, allocations: 221.6 kB / 0.496 GB, free: 3.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.117, allocations: 309 kB / 0.4963 GB, free: 3.422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.117, allocations: 41.64 kB / 0.4964 GB, free: 3.375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1172, allocations: 136.6 kB / 0.4965 GB, free: 3.238 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.748e-05/0.1172, allocations: 55.34 kB / 0.4965 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.616e-05/0.1173, allocations: 49.7 kB / 0.4966 GB, free: 3.129 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1175, allocations: 334.8 kB / 0.4969 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.1176, allocations: 59.97 kB / 0.497 GB, free: 2.734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001964/0.1178, allocations: 146.2 kB / 0.4971 GB, free: 2.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.1182, allocations: 362.6 kB / 0.4974 GB, free: 2.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1182, allocations: 0 / 0.4974 GB, free: 2.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005282/0.1187, allocations: 342.2 kB / 0.4978 GB, free: 1.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.566e-05/0.1188, allocations: 97.09 kB / 0.4979 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1188, allocations: 0 / 0.4979 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1189, allocations: 4 kB / 0.4979 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.119, allocations: 24.52 kB / 0.4979 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.119, allocations: 8 kB / 0.4979 GB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.1191, allocations: 27.89 kB / 0.4979 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.1192, allocations: 15.94 kB / 0.4979 GB, free: 1.582 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.0002205/0.1194, allocations: 273.5 kB / 0.4982 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.1194, allocations: 31.66 kB / 0.4982 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.1195, allocations: 25.7 kB / 0.4983 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1195, allocations: 8 kB / 0.4983 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1195, allocations: 0 / 0.4983 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1195, allocations: 0 / 0.4983 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002727/0.1198, allocations: 293.4 kB / 0.4985 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1198, allocations: 0 / 0.4985 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.194e-05/0.1199, allocations: 11.88 kB / 0.4986 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.1199, allocations: 0 / 0.4986 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.1199, allocations: 8 kB / 0.4986 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.1199, allocations: 7.984 kB / 0.4986 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1199, allocations: 0 / 0.4986 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006116/0.1205, allocations: 435.6 kB / 0.499 GB, free: 396 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.337e-05/0.1206, allocations: 108.7 kB / 0.4991 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.1207, allocations: 15.98 kB / 0.4991 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.1208, allocations: 12 kB / 0.4991 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.1209, allocations: 27.91 kB / 0.4991 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.1209, allocations: 16 kB / 0.4992 GB, free: 196 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002538/0.1212, allocations: 232.4 kB / 0.4994 GB, free: 15.96 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.1212, allocations: 0 / 0.4994 GB, free: 15.96 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.1215, allocations: 63.94 kB / 0.4994 GB, free: 15.9 MB / 398.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.000973/0.1225, allocations: 434.1 kB / 0.4999 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005673/0.1231, allocations: 401.9 kB / 0.5002 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1231, allocations: 0 / 0.5002 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.1234, allocations: 342.3 kB / 0.5006 GB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003468/0.1238, allocations: 55.81 kB / 0.5006 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000815/0.1246, allocations: 483.4 kB / 0.5011 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003215/0.125, allocations: 0.7557 MB / 0.5018 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.125, allocations: 23.44 kB / 0.5018 GB, free: 13.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.125, allocations: 0 / 0.5018 GB, free: 13.34 MB / 398.1 MB Notification: Performance of Templates: time 0.005891/0.1309, allocations: 3.541 MB / 0.5053 GB, free: 9.801 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches