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.001245/0.001245, allocations: 113.2 kB / 17.69 MB, free: 5.098 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.001143/0.001143, allocations: 192 kB / 18.63 MB, free: 4.242 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.469/1.469, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001538, allocations: 51.05 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1246, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003529/0.1282, allocations: 1.871 MB / 353.4 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.1299, allocations: 1.142 MB / 354.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.1301, allocations: 4 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003211/0.1304, allocations: 63.67 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002501/0.1307, allocations: 91.58 kB / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006862/0.1314, allocations: 260.1 kB / 354.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002276/0.1316, allocations: 163.5 kB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1317, allocations: 37.53 kB / 355.1 MB, free: 68 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.1319, allocations: 79.62 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.132, allocations: 71.69 kB / 355.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.132, allocations: 12 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.1321, allocations: 63.95 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.418e-05/0.1322, allocations: 47.83 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.902e-05/0.1323, allocations: 79.42 kB / 355.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002957/0.1326, allocations: 239.2 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1327, allocations: 0 / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1327, allocations: 0 / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.1327, allocations: 0 / 355.7 MB, free: 15.48 MB / 302.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.0006865/0.1334, allocations: 0.5272 MB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.1334, allocations: 15.89 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.5e-05/0.1335, allocations: 32.58 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.1339, allocations: 287.6 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1339, allocations: 4.375 kB / 356.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.1339, allocations: 12.12 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.1343, allocations: 159.6 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.1343, allocations: 0 / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1343, allocations: 3.938 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1343, allocations: 4 kB / 356.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.1344, allocations: 31.98 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.135, allocations: 386.3 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.1352, allocations: 115.9 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.909e-05/0.1353, allocations: 50.56 kB / 357.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1353, allocations: 0 / 357.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001595/0.1355, allocations: 83.31 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.1355, allocations: 3.938 kB / 357.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003925/0.1359, allocations: 149.3 kB / 357.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.132e-05/0.136, allocations: 162.2 kB / 357.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.1363, allocations: 326.7 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/0.1363, allocations: 29.7 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.1364, allocations: 132 kB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.1365, allocations: 15.86 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.1365, allocations: 29.97 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1366, allocations: 342.8 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.278e-05/0.1367, allocations: 27.92 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.1368, allocations: 82.84 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.137, allocations: 84.22 kB / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.137, allocations: 0 / 358.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002232/0.1372, allocations: 129.3 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1372, allocations: 4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1373, allocations: 8.125 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.1373, allocations: 0 / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1374, allocations: 19.98 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.1374, allocations: 0 / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.1375, allocations: 8.25 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.1375, allocations: 4 kB / 358.9 MB, free: 11.92 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.0001312/0.1376, allocations: 174.1 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.1377, allocations: 61.42 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.326e-05/0.1378, allocations: 33.77 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.1378, allocations: 0 / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1378, allocations: 0 / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1378, allocations: 11.92 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001854/0.138, allocations: 229.6 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.138, allocations: 7.938 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.1381, allocations: 8 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1381, allocations: 0 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1381, allocations: 7.984 kB / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1381, allocations: 0 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1381, allocations: 0 / 359.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.1384, allocations: 174.3 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.1385, allocations: 116.8 kB / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.1385, allocations: 4.094 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.603e-05/0.1386, allocations: 11.92 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.1387, allocations: 4 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.1387, allocations: 15.92 kB / 359.8 MB, free: 10.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.1389, allocations: 241.9 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1389, allocations: 0 / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.1392, allocations: 36 kB / 360 MB, free: 10.7 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.0009475/0.1401, allocations: 425 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.1404, allocations: 76.03 kB / 360.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1404, allocations: 0 / 360.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.01e-05/0.1405, allocations: 27.98 kB / 360.5 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.1409, allocations: 78.89 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005393/0.1414, allocations: 357.2 kB / 361 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.1417, allocations: 0.74 MB / 361.7 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.712e-05/0.1418, allocations: 25.73 kB / 361.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.704e-05/0.1419, allocations: 23.44 kB / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1419, allocations: 0 / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of Templates: time 0.006099/0.148, allocations: 2.85 MB / 364.6 MB, free: 6.238 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 -s gbode -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