Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 112.2 kB / 17.29 MB, free: 6.207 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.001437/0.001437, allocations: 197.3 kB / 18.21 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 241.9 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 50.95 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.126, allocations: 49.44 MB / 350.2 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.005232/0.1313, allocations: 1.929 MB / 352.2 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1337, allocations: 1.107 MB / 353.3 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.1339, allocations: 7.938 kB / 353.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003773/0.1344, allocations: 59.8 kB / 353.4 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000394/0.1348, allocations: 87.72 kB / 353.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1358, allocations: 221.7 kB / 353.7 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.1362, allocations: 175.5 kB / 353.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.1364, allocations: 33.53 kB / 353.9 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.1366, allocations: 79.64 kB / 353.9 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.1368, allocations: 79.67 kB / 354 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.1368, allocations: 8 kB / 354 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.137, allocations: 63.91 kB / 354.1 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1372, allocations: 51.83 kB / 354.1 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1373, allocations: 83.47 kB / 354.2 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000387/0.1377, allocations: 172 kB / 354.4 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1377, allocations: 0 / 354.4 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1377, allocations: 7.938 kB / 354.4 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.1377, allocations: 0 / 354.4 MB, free: 384 kB / 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.001184/0.1389, allocations: 0.5272 MB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.139, allocations: 15.89 kB / 354.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.953e-05/0.1391, allocations: 20.66 kB / 355 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.1396, allocations: 291.5 kB / 355.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.1396, allocations: 4.375 kB / 355.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.1396, allocations: 12.12 kB / 355.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004675/0.1401, allocations: 159.6 kB / 355.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1402, allocations: 3.938 kB / 355.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.1402, allocations: 0 / 355.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1402, allocations: 4 kB / 355.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.1403, allocations: 31.97 kB / 355.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.141, allocations: 386.3 kB / 355.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.1413, allocations: 119.9 kB / 355.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.1414, allocations: 46.56 kB / 356 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.1415, allocations: 0 / 356 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.1417, allocations: 83.31 kB / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.1418, allocations: 0 / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004369/0.1422, allocations: 153.3 kB / 356.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.1423, allocations: 158.2 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003697/0.1427, allocations: 326.7 kB / 356.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.1427, allocations: 25.7 kB / 356.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.1429, allocations: 136.3 kB / 356.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.1429, allocations: 19.86 kB / 356.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.143, allocations: 33.66 kB / 356.9 MB, free: 13.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1431, allocations: 338.8 kB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.409e-05/0.1432, allocations: 23.98 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.1433, allocations: 86.84 kB / 357.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001611/0.1435, allocations: 84.41 kB / 357.4 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1435, allocations: 0 / 357.4 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002828/0.1438, allocations: 133.3 kB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.1438, allocations: 4 kB / 357.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.1438, allocations: 4 kB / 357.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1439, allocations: 0 / 357.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.144, allocations: 23.98 kB / 357.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.144, allocations: 0 / 357.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.46e-05/0.1441, allocations: 7.938 kB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.1441, allocations: 4 kB / 357.6 MB, free: 12.82 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,table.y,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.0001663/0.1443, allocations: 165.8 kB / 357.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.1444, allocations: 65.41 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.453e-05/0.1445, allocations: 25.72 kB / 357.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1445, allocations: 7.875 kB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1445, allocations: 3.984 kB / 357.9 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.1445, allocations: 7.938 kB / 357.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.1447, allocations: 229.6 kB / 358.1 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1448, allocations: 4 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.483e-05/0.1448, allocations: 8 kB / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1448, allocations: 112 / 358.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.1449, allocations: 15.97 kB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1449, allocations: 0 / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1449, allocations: 0 / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.1452, allocations: 166.4 kB / 358.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1453, allocations: 112.8 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.1453, allocations: 11.98 kB / 358.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.357e-05/0.1454, allocations: 0 / 358.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.54e-05/0.1455, allocations: 11.98 kB / 358.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.1455, allocations: 12 kB / 358.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002496/0.1457, allocations: 241.9 kB / 358.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1458, allocations: 0 / 358.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002801/0.146, allocations: 32 kB / 358.7 MB, free: 11.61 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,table.y,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.001094/0.1471, allocations: 442.1 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002643/0.1474, allocations: 75.89 kB / 359.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1474, allocations: 0 / 359.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.69e-05/0.1475, allocations: 31.92 kB / 359.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.148, allocations: 56.81 kB / 359.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007985/0.1488, allocations: 443.4 kB / 359.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/0.1492, allocations: 0.7358 MB / 360.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.1493, allocations: 23.42 kB / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1493, allocations: 0 / 360.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of Templates: time 0.006835/0.1561, allocations: 2.896 MB / 363.4 MB, free: 7.031 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches