Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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 4.0.0+maint.om/package.mo", uses=false) 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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.002184/0.002184, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.107/2.107, allocations: 222.9 MB / 241.7 MB, free: 15.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 44.33 kB / 300.6 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1773, allocations: 49.44 MB / 350.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.006691/0.1841, allocations: 1.94 MB / 352 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.1872, allocations: 1.041 MB / 353 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002668/0.1875, allocations: 0 / 353 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1887, allocations: 147.6 kB / 353.2 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005053/0.1892, allocations: 95.69 kB / 353.3 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1902, allocations: 174.7 kB / 353.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004799/0.1907, allocations: 183.5 kB / 353.6 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.1909, allocations: 29.53 kB / 353.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.1912, allocations: 67.59 kB / 353.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.1914, allocations: 67.69 kB / 353.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.1914, allocations: 4 kB / 353.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.1917, allocations: 47.91 kB / 353.8 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.1918, allocations: 39.83 kB / 353.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.192, allocations: 67.55 kB / 353.9 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004238/0.1924, allocations: 152 kB / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.1924, allocations: 0 / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1925, allocations: 0 / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1925, allocations: 0 / 354.1 MB, free: 0.8359 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001322/0.1938, allocations: 0.5118 MB / 354.6 MB, free: 276 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.576e-05/0.1939, allocations: 11.97 kB / 354.6 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.194, allocations: 24.75 kB / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000631/0.1947, allocations: 258.8 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.1947, allocations: 8.375 kB / 354.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.1947, allocations: 12.12 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000522/0.1953, allocations: 146.1 kB / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.1953, allocations: 3.984 kB / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.1954, allocations: 4 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1954, allocations: 4 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.1956, allocations: 39.86 kB / 355.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007894/0.1964, allocations: 358.3 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003654/0.1968, allocations: 111.9 kB / 355.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.1969, allocations: 42.56 kB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.876e-05/0.197, allocations: 4 kB / 355.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002681/0.1973, allocations: 79.33 kB / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 5.941e-06/0.1973, allocations: 0 / 355.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0005973/0.1979, allocations: 137.3 kB / 355.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.198, allocations: 136.5 kB / 356 MB, free: 14.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.1986, allocations: 265.2 kB / 356.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.1986, allocations: 29.7 kB / 356.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1988, allocations: 116.1 kB / 356.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.1988, allocations: 19.81 kB / 356.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.1989, allocations: 33.7 kB / 356.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1991, allocations: 326.8 kB / 356.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1992, allocations: 23.98 kB / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1994, allocations: 77.92 kB / 356.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.1996, allocations: 72.22 kB / 356.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1996, allocations: 0 / 356.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003571/0.2, allocations: 117.8 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.2001, allocations: 7.984 kB / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.2001, allocations: 4 kB / 357 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.2001, allocations: 3.938 kB / 357 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2003, allocations: 12 kB / 357 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.2003, allocations: 0 / 357 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.2004, allocations: 19.83 kB / 357.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.656e-05/0.2005, allocations: 4 kB / 357.1 MB, free: 13.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0002175/0.2007, allocations: 145.9 kB / 357.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.2008, allocations: 57.52 kB / 357.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.463e-05/0.2009, allocations: 29.62 kB / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.201, allocations: 0 / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.201, allocations: 0 / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.201, allocations: 7.938 kB / 357.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003015/0.2013, allocations: 217.6 kB / 357.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.2013, allocations: 0 / 357.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.2014, allocations: 19.98 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2014, allocations: 0 / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.554e-05/0.2014, allocations: 4 kB / 357.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2014, allocations: 0 / 357.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.2015, allocations: 4 kB / 357.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003807/0.2018, allocations: 158.4 kB / 357.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.202, allocations: 108.9 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.2021, allocations: 7.938 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.2022, allocations: 11.98 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.749e-05/0.2023, allocations: 0 / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.2023, allocations: 7.938 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003472/0.2027, allocations: 196.5 kB / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2027, allocations: 0 / 358 MB, free: 12.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004778/0.2032, allocations: 28 kB / 358 MB, free: 12.44 MB / 302.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.001747/0.205, allocations: 432.5 kB / 358.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003383/0.2053, allocations: 71.78 kB / 358.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2053, allocations: 0 / 358.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001178/0.2055, allocations: 23.98 kB / 358.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.2061, allocations: 63 kB / 358.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009571/0.2071, allocations: 376.6 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004073/0.2075, allocations: 0.7322 MB / 359.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.986e-05/0.2076, allocations: 15.44 kB / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2076, allocations: 0 / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of Templates: time 0.007984/0.2156, allocations: 2.588 MB / 362.3 MB, free: 8.262 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches