Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 173 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 89.84 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2297/0.2297, allocations: 44.15 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.209e-05/1.212e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1226, allocations: 61.92 MB / 0.4947 GB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3863/0.5089, allocations: 89.86 MB / 0.5824 GB, free: 6.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.5092, allocations: 67.97 kB / 0.5825 GB, free: 6.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0162/0.5254, allocations: 6.111 MB / 0.5885 GB, free: 484 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.5254, allocations: 0 / 0.5885 GB, free: 484 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.5254, allocations: 4 kB / 0.5885 GB, free: 480 kB / 394.7 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.0007078/0.5262, allocations: 0.5943 MB / 0.589 GB, free: 15.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.5262, allocations: 8.031 kB / 0.5891 GB, free: 15.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.5263, allocations: 27.8 kB / 0.5891 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.5268, allocations: 285.6 kB / 0.5893 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.759e-05/0.5269, allocations: 89.11 kB / 0.5894 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.5269, allocations: 19.95 kB / 0.5895 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001731/0.5271, allocations: 72.09 kB / 0.5895 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.5273, allocations: 139 kB / 0.5897 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.5274, allocations: 0 / 0.5897 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.5274, allocations: 4 kB / 0.5897 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.5274, allocations: 0.8438 kB / 0.5897 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007954/0.5282, allocations: 0.5951 MB / 0.5902 GB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.5284, allocations: 153.2 kB / 0.5904 GB, free: 14.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.5285, allocations: 86.5 kB / 0.5905 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.564e-05/0.5286, allocations: 0 / 0.5905 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.5289, allocations: 417.4 kB / 0.5909 GB, free: 13.7 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 1.563e-06/0.5289, allocations: 0 / 0.5909 GB, free: 13.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004553/0.5294, allocations: 237.3 kB / 0.5911 GB, free: 13.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.966e-05/0.5295, allocations: 217.6 kB / 0.5913 GB, free: 13.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.5298, allocations: 280.3 kB / 0.5916 GB, free: 12.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.5299, allocations: 33.7 kB / 0.5916 GB, free: 12.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.53, allocations: 136.6 kB / 0.5917 GB, free: 12.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.442e-05/0.5301, allocations: 51.34 kB / 0.5918 GB, free: 12.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.5301, allocations: 3.938 kB / 0.5918 GB, free: 12.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5302, allocations: 338.8 kB / 0.5921 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.538e-05/0.5303, allocations: 44.3 kB / 0.5921 GB, free: 12.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.5305, allocations: 134.4 kB / 0.5923 GB, free: 12.13 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.56e-05/0.5306, allocations: 55.88 kB / 0.5923 GB, free: 12.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5306, allocations: 4.031 kB / 0.5923 GB, free: 12.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003415/0.5309, allocations: 221.2 kB / 0.5925 GB, free: 11.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.073e-05/0.531, allocations: 101 kB / 0.5926 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.531, allocations: 0 / 0.5926 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.531, allocations: 4 kB / 0.5926 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.5312, allocations: 23.92 kB / 0.5927 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5312, allocations: 4 kB / 0.5927 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.5313, allocations: 24.2 kB / 0.5927 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.5313, allocations: 8 kB / 0.5927 GB, free: 11.67 MB / 410.7 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,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001755/0.5315, allocations: 233 kB / 0.5929 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.5316, allocations: 35.62 kB / 0.593 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003035/0.5319, allocations: 157.5 kB / 0.5931 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.5319, allocations: 0 / 0.5931 GB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.5319, allocations: 8 kB / 0.5931 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.5319, allocations: 3.984 kB / 0.5931 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002583/0.5322, allocations: 262 kB / 0.5934 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.5322, allocations: 0 / 0.5934 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/0.5322, allocations: 8 kB / 0.5934 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-06/0.5323, allocations: 8.141 kB / 0.5934 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.5323, allocations: 7.984 kB / 0.5934 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.5323, allocations: 4 kB / 0.5934 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5323, allocations: 0 / 0.5934 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004792/0.5328, allocations: 361.6 kB / 0.5937 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.893e-05/0.5329, allocations: 112.8 kB / 0.5938 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.468e-05/0.533, allocations: 8 kB / 0.5939 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.5331, allocations: 15.98 kB / 0.5939 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.632e-05/0.5332, allocations: 27.98 kB / 0.5939 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.5332, allocations: 8 kB / 0.5939 GB, free: 10.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002319/0.5334, allocations: 220.5 kB / 0.5941 GB, free: 10.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5335, allocations: 0 / 0.5941 GB, free: 10.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003399/0.5338, allocations: 67.98 kB / 0.5942 GB, free: 10.04 MB / 410.7 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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008276/0.5346, allocations: 371.3 kB / 0.5945 GB, free: 9.742 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004334/0.5351, allocations: 358.1 kB / 0.5949 GB, free: 9.355 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.5351, allocations: 0 / 0.5949 GB, free: 9.355 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002791/0.5354, allocations: 330.1 kB / 0.5952 GB, free: 8.996 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.5357, allocations: 48.45 kB / 0.5952 GB, free: 8.949 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000635/0.5363, allocations: 355.6 kB / 0.5956 GB, free: 8.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.5367, allocations: 0.7597 MB / 0.5963 GB, free: 7.781 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.5368, allocations: 37.83 kB / 0.5964 GB, free: 7.742 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.5369, allocations: 19.62 kB / 0.5964 GB, free: 7.723 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5369, allocations: 0 / 0.5964 GB, free: 7.723 MB / 410.7 MB Notification: Performance of Templates: time 0.006558/0.5435, allocations: 3.083 MB / 0.5994 GB, free: 4.652 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches