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.00129/0.00129, allocations: 111.7 kB / 16.51 MB, free: 6.707 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.001542/0.001542, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.395/1.395, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 51.11 kB / 300 MB, free: 6.297 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1368, allocations: 49.44 MB / 349.4 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003765/0.1406, allocations: 1.925 MB / 351.3 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.1426, allocations: 1.122 MB / 352.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.1428, allocations: 7.938 kB / 352.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003673/0.1432, allocations: 63.78 kB / 352.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002453/0.1434, allocations: 75.73 kB / 352.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007571/0.1442, allocations: 229.2 kB / 352.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.1444, allocations: 159.5 kB / 353 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.1446, allocations: 25.55 kB / 353 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1447, allocations: 71.64 kB / 353.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.1448, allocations: 83.61 kB / 353.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.621e-05/0.1448, allocations: 4 kB / 353.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.145, allocations: 51.97 kB / 353.2 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.507e-05/0.1451, allocations: 47.83 kB / 353.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.637e-05/0.1452, allocations: 71.47 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.1455, allocations: 227.5 kB / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1456, allocations: 0 / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1456, allocations: 0 / 353.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1456, allocations: 0 / 353.5 MB, free: 0.6875 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.0007497/0.1463, allocations: 0.5312 MB / 354.1 MB, free: 104 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1464, allocations: 11.97 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.945e-05/0.1464, allocations: 24.66 kB / 354.1 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.1468, allocations: 279.6 kB / 354.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1468, allocations: 8.312 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.1468, allocations: 12.12 kB / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003621/0.1472, allocations: 159.6 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.689e-06/0.1472, allocations: 0 / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.1473, allocations: 4 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.1473, allocations: 0 / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.1474, allocations: 39.92 kB / 354.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005528/0.148, allocations: 382.3 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.1482, allocations: 115.9 kB / 355.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.64e-05/0.1483, allocations: 50.56 kB / 355.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.1484, allocations: 7.938 kB / 355.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.1487, allocations: 75.38 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.512e-06/0.1487, allocations: 0 / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004088/0.1491, allocations: 157.2 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1492, allocations: 158.2 kB / 355.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.1496, allocations: 330.7 kB / 355.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.1496, allocations: 29.7 kB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.576e-05/0.1497, allocations: 128.1 kB / 356 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.1497, allocations: 11.81 kB / 356 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.598e-05/0.1498, allocations: 37.89 kB / 356 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.15, allocations: 338.8 kB / 356.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.02e-05/0.15, allocations: 23.98 kB / 356.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.1501, allocations: 82.86 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.1503, allocations: 84.22 kB / 356.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1503, allocations: 0 / 356.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002393/0.1506, allocations: 129.2 kB / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1506, allocations: 8 kB / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1506, allocations: 4.125 kB / 356.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1506, allocations: 4 kB / 356.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1507, allocations: 20.23 kB / 356.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.1508, allocations: 7.984 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.628e-05/0.1508, allocations: 7.938 kB / 356.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.1509, allocations: 8 kB / 356.7 MB, free: 13.12 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.0001515/0.151, allocations: 157.8 kB / 356.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.716e-05/0.1511, allocations: 69.39 kB / 357 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.5e-05/0.1512, allocations: 29.77 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.1512, allocations: 4 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1512, allocations: 0 / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1512, allocations: 3.938 kB / 357 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.1515, allocations: 241.6 kB / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1515, allocations: 0 / 357.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.1516, allocations: 8 kB / 357.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1516, allocations: 4 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.1516, allocations: 0 / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.1516, allocations: 4 kB / 357.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1516, allocations: 7.984 kB / 357.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002981/0.1519, allocations: 158.4 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.152, allocations: 116.8 kB / 357.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.1521, allocations: 7.938 kB / 357.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.1522, allocations: 12.02 kB / 357.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.954e-05/0.1522, allocations: 15.94 kB / 357.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.1523, allocations: 11.92 kB / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.1525, allocations: 237.9 kB / 357.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1525, allocations: 4 kB / 357.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.1528, allocations: 32 kB / 357.8 MB, free: 11.92 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.001065/0.1539, allocations: 419.9 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002459/0.1541, allocations: 79.97 kB / 358.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1541, allocations: 0 / 358.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.368e-05/0.1542, allocations: 35.92 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004392/0.1547, allocations: 60.41 kB / 358.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006987/0.1554, allocations: 406.3 kB / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.1558, allocations: 0.7516 MB / 359.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.798e-05/0.1558, allocations: 25.53 kB / 359.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.439e-05/0.1559, allocations: 19.44 kB / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1559, allocations: 0 / 359.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Templates: time 0.006553/0.1625, allocations: 2.741 MB / 362.4 MB, free: 7.516 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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