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.001341/0.001341, allocations: 111.1 kB / 16.41 MB, free: 6.484 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.001612/0.001612, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.531/1.531, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2051/0.2051, allocations: 43.52 MB / 314.1 MB, free: 448 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.001579/0.001579, allocations: 63.91 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1275, allocations: 57.78 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004088/0.1317, allocations: 1.887 MB / 0.4897 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.1334, allocations: 0.9636 MB / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.1336, allocations: 0 / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007503/0.1343, allocations: 187.4 kB / 0.4908 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.1347, allocations: 139.4 kB / 0.491 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004117/0.1351, allocations: 163.7 kB / 0.4911 GB, free: 8.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003105/0.1354, allocations: 287.3 kB / 0.4914 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.1355, allocations: 37.59 kB / 0.4914 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.1357, allocations: 111.7 kB / 0.4915 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1358, allocations: 111.5 kB / 0.4916 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.444e-05/0.1359, allocations: 23.98 kB / 0.4917 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.136, allocations: 63.97 kB / 0.4917 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.139e-05/0.1361, allocations: 55.83 kB / 0.4918 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.1362, allocations: 119.4 kB / 0.4919 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.1366, allocations: 271.1 kB / 0.4921 GB, free: 7.402 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1366, allocations: 0 / 0.4921 GB, free: 7.402 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1366, allocations: 0 / 0.4921 GB, free: 7.402 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.1366, allocations: 0 / 0.4921 GB, free: 7.402 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.0009006/0.1375, allocations: 0.6688 MB / 0.4928 GB, free: 6.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1375, allocations: 11.89 kB / 0.4928 GB, free: 6.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.353e-05/0.1376, allocations: 32.66 kB / 0.4928 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003683/0.138, allocations: 274.7 kB / 0.4931 GB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.515e-05/0.1381, allocations: 97.66 kB / 0.4932 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.1381, allocations: 15.94 kB / 0.4932 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1385, allocations: 157 kB / 0.4934 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.1385, allocations: 0 / 0.4934 GB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.1385, allocations: 12 kB / 0.4934 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1385, allocations: 0 / 0.4934 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.1388, allocations: 87.88 kB / 0.4935 GB, free: 5.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008536/0.1396, allocations: 0.6102 MB / 0.4941 GB, free: 5.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003466/0.14, allocations: 175.9 kB / 0.4942 GB, free: 5.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.1402, allocations: 94.53 kB / 0.4943 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1402, allocations: 7.984 kB / 0.4943 GB, free: 4.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004642/0.1407, allocations: 429 kB / 0.4947 GB, free: 4.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.1407, allocations: 3.938 kB / 0.4947 GB, free: 4.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008795/0.1416, allocations: 446.3 kB / 0.4952 GB, free: 3.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.1417, allocations: 217.6 kB / 0.4954 GB, free: 3.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004313/0.1422, allocations: 313 kB / 0.4957 GB, free: 3.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1422, allocations: 41.62 kB / 0.4957 GB, free: 3.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.1424, allocations: 128.6 kB / 0.4958 GB, free: 3.223 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/0.1424, allocations: 55.34 kB / 0.4959 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.1425, allocations: 49.7 kB / 0.4959 GB, free: 3.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002198/0.1427, allocations: 342.8 kB / 0.4963 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.1429, allocations: 51.97 kB / 0.4963 GB, free: 2.719 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.1431, allocations: 146.2 kB / 0.4964 GB, free: 2.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004066/0.1435, allocations: 367 kB / 0.4968 GB, free: 2.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1435, allocations: 0 / 0.4968 GB, free: 2.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005261/0.144, allocations: 342.2 kB / 0.4971 GB, free: 1.754 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.1442, allocations: 101.1 kB / 0.4972 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.1442, allocations: 0 / 0.4972 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1442, allocations: 4 kB / 0.4972 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1443, allocations: 24.16 kB / 0.4972 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.1443, allocations: 7.984 kB / 0.4972 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.1445, allocations: 19.91 kB / 0.4973 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.1445, allocations: 15.94 kB / 0.4973 GB, free: 1.566 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.0002203/0.1447, allocations: 273.3 kB / 0.4975 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.902e-05/0.1448, allocations: 31.66 kB / 0.4976 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.91e-05/0.1449, allocations: 29.7 kB / 0.4976 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1449, allocations: 4 kB / 0.4976 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1449, allocations: 0 / 0.4976 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1449, allocations: 0 / 0.4976 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.1452, allocations: 293.4 kB / 0.4979 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1452, allocations: 0 / 0.4979 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.206e-05/0.1452, allocations: 11.88 kB / 0.4979 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1452, allocations: 4 kB / 0.4979 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1452, allocations: 7.984 kB / 0.4979 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.1453, allocations: 4 kB / 0.4979 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1453, allocations: 4 kB / 0.4979 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006293/0.1459, allocations: 435.9 kB / 0.4983 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.773e-05/0.146, allocations: 108.7 kB / 0.4984 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.199e-05/0.1461, allocations: 12 kB / 0.4984 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.1462, allocations: 15.98 kB / 0.4985 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/0.1463, allocations: 27.92 kB / 0.4985 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.1463, allocations: 12 kB / 0.4985 GB, free: 180 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002863/0.1466, allocations: 232.4 kB / 0.4987 GB, free: 15.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.1466, allocations: 0 / 0.4987 GB, free: 15.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.1469, allocations: 63.94 kB / 0.4988 GB, free: 15.89 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.001001/0.1479, allocations: 433.6 kB / 0.4992 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006055/0.1485, allocations: 401.9 kB / 0.4996 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1486, allocations: 0 / 0.4996 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003924/0.149, allocations: 346.3 kB / 0.4999 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.1493, allocations: 51.62 kB / 0.5 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008215/0.1502, allocations: 461.6 kB / 0.5004 GB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003679/0.1505, allocations: 0.7479 MB / 0.5011 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.1506, allocations: 33.83 kB / 0.5012 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.1507, allocations: 19.44 kB / 0.5012 GB, free: 13.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.224e-06/0.1507, allocations: 0 / 0.5012 GB, free: 13.34 MB / 398.1 MB Notification: Performance of Templates: time 0.00719/0.1579, allocations: 3.47 MB / 0.5046 GB, free: 9.867 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches