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.001087/0.001092, allocations: 117.9 kB / 17.08 MB, free: 5.969 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.001056/0.001056, allocations: 197.2 kB / 18.02 MB, free: 5.047 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.277/1.277, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.1899/0.1899, allocations: 43.53 MB / 314.8 MB, free: 444 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.00143/0.00143, allocations: 73.41 kB / 442.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09998/0.1014, allocations: 57.79 MB / 0.4885 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004498/0.106, allocations: 1.88 MB / 0.4904 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1076, allocations: 0.9674 MB / 0.4913 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.1078, allocations: 0 / 0.4913 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006765/0.1085, allocations: 187.5 kB / 0.4915 GB, free: 8.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003463/0.1089, allocations: 123.5 kB / 0.4916 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.1094, allocations: 175.6 kB / 0.4918 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003834/0.1098, allocations: 275.3 kB / 0.492 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.1099, allocations: 41.59 kB / 0.4921 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.1101, allocations: 103.7 kB / 0.4922 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.1104, allocations: 115.6 kB / 0.4923 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.179e-05/0.1104, allocations: 16 kB / 0.4923 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.1106, allocations: 71.89 kB / 0.4924 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.1108, allocations: 59.77 kB / 0.4924 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1109, allocations: 123.4 kB / 0.4925 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.1113, allocations: 275.1 kB / 0.4928 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1113, allocations: 0 / 0.4928 GB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1114, allocations: 0 / 0.4928 GB, free: 7.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.1114, allocations: 0 / 0.4928 GB, free: 7.379 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.001042/0.1124, allocations: 0.661 MB / 0.4934 GB, free: 6.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1125, allocations: 11.89 kB / 0.4935 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/0.1126, allocations: 28.66 kB / 0.4935 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.113, allocations: 282.7 kB / 0.4938 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.1131, allocations: 93.67 kB / 0.4938 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.1131, allocations: 19.94 kB / 0.4939 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.1135, allocations: 149 kB / 0.494 GB, free: 6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1135, allocations: 3.984 kB / 0.494 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.1135, allocations: 4 kB / 0.494 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1135, allocations: 8 kB / 0.494 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.1138, allocations: 91.86 kB / 0.4941 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008404/0.1146, allocations: 0.6062 MB / 0.4947 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.115, allocations: 175.9 kB / 0.4949 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.1152, allocations: 90.55 kB / 0.495 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1152, allocations: 8 kB / 0.495 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004402/0.1156, allocations: 436.9 kB / 0.4954 GB, free: 4.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.1156, allocations: 0 / 0.4954 GB, free: 4.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008448/0.1165, allocations: 446.3 kB / 0.4958 GB, free: 3.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1166, allocations: 217.5 kB / 0.496 GB, free: 3.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.117, allocations: 313 kB / 0.4963 GB, free: 3.383 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.117, allocations: 37.64 kB / 0.4963 GB, free: 3.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1171, allocations: 140.6 kB / 0.4965 GB, free: 3.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/0.1172, allocations: 47.36 kB / 0.4965 GB, free: 3.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/0.1173, allocations: 53.69 kB / 0.4966 GB, free: 3.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1174, allocations: 338.8 kB / 0.4969 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.1176, allocations: 55.97 kB / 0.497 GB, free: 2.699 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.1178, allocations: 142.3 kB / 0.4971 GB, free: 2.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003903/0.1182, allocations: 363.3 kB / 0.4974 GB, free: 2.102 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1182, allocations: 4 kB / 0.4974 GB, free: 2.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000551/0.1188, allocations: 350.1 kB / 0.4978 GB, free: 1.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.477e-05/0.1188, allocations: 93.09 kB / 0.4979 GB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1188, allocations: 4 kB / 0.4979 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.1189, allocations: 4 kB / 0.4979 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.119, allocations: 24.14 kB / 0.4979 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.119, allocations: 8 kB / 0.4979 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.1192, allocations: 27.83 kB / 0.4979 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.1192, allocations: 11.94 kB / 0.4979 GB, free: 1.543 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.0002309/0.1194, allocations: 269.4 kB / 0.4982 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.1195, allocations: 39.64 kB / 0.4982 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.969e-05/0.1196, allocations: 21.72 kB / 0.4983 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1196, allocations: 8 kB / 0.4983 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1196, allocations: 0 / 0.4983 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1196, allocations: 3.984 kB / 0.4983 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002878/0.1199, allocations: 285.4 kB / 0.4985 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1199, allocations: 4 kB / 0.4985 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.481e-05/0.1199, allocations: 11.92 kB / 0.4986 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.12, allocations: 0 / 0.4986 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.12, allocations: 12 kB / 0.4986 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.12, allocations: 0 / 0.4986 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.12, allocations: 4 kB / 0.4986 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006383/0.1206, allocations: 439.5 kB / 0.499 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.096e-05/0.1207, allocations: 104.9 kB / 0.4991 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.62e-05/0.1208, allocations: 16 kB / 0.4991 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.1209, allocations: 15.98 kB / 0.4991 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.121, allocations: 27.97 kB / 0.4991 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.1211, allocations: 15.98 kB / 0.4992 GB, free: 152 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.1213, allocations: 228.5 kB / 0.4994 GB, free: 15.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.1213, allocations: 0 / 0.4994 GB, free: 15.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000334/0.1217, allocations: 71.92 kB / 0.4994 GB, free: 15.86 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.0009755/0.1226, allocations: 426.3 kB / 0.4999 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005777/0.1232, allocations: 401.8 kB / 0.5002 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1232, allocations: 0 / 0.5002 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.1236, allocations: 342.1 kB / 0.5006 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.124, allocations: 67.72 kB / 0.5006 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008065/0.1248, allocations: 483.5 kB / 0.5011 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1252, allocations: 0.7479 MB / 0.5018 GB, free: 13.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/0.1252, allocations: 27.44 kB / 0.5018 GB, free: 13.3 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1252, allocations: 0 / 0.5018 GB, free: 13.3 MB / 398.1 MB Notification: Performance of Templates: time 0.006357/0.1316, allocations: 3.565 MB / 0.5053 GB, free: 9.73 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